desktop/freecol/PKGBUILD

31 lines
1.0 KiB
Bash
Raw Normal View History

2011-01-24 06:28:51 +08:00
pkgname=freecol
_pkgname=FreeCol
2016-04-27 20:22:11 +08:00
pkgver=0.11.6
2011-01-24 06:28:51 +08:00
pkgrel=1
2011-10-16 16:19:27 +08:00
pkgdesc="A turn-based strategy game based on Colonization"
2014-11-11 18:37:49 +08:00
arch=('x86_64')
2011-01-24 06:28:51 +08:00
url="http://www.freecol.org/"
license=('GPL')
depends=('java-runtime')
2012-03-07 19:00:46 +08:00
categories=('games')
2016-04-27 20:22:11 +08:00
source=(http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.zip
main.desktop
main.sh)
2016-04-27 20:22:11 +08:00
sha1sums=('084acb6c3c86ce7b1935dfc9a60596ab9547c8fe'
'1c0b0f685bf88a3c3618bcf6414ace6cddf1ffd0'
'f14f60f487e96ce5bd848357e5ba5a2c4d7d2fd2')
2011-09-09 04:25:52 +08:00
2011-01-24 06:28:51 +08:00
package() {
2014-11-11 18:37:49 +08:00
cd "$srcdir/$pkgname"
2011-01-24 06:28:51 +08:00
2016-04-27 20:22:11 +08:00
install -Dm644 FreeCol.jar "$pkgdir/usr/share/$pkgname/FreeCol.jar"
install -Dm644 FreeCol.pdf "$pkgdir/usr/share/doc/$pkgname/FreeCol.pdf"
2014-11-11 18:37:49 +08:00
install -Dm644 $pkgname.xpm "$pkgdir/usr/share/pixmaps/$pkgname.xpm"
install -Dm644 ../main.desktop "$pkgdir/usr/share/applications/$pkgname.desktop"
install -Dm755 ../main.sh "$pkgdir/usr/bin/$pkgname"
2011-09-09 04:25:52 +08:00
2016-04-27 20:22:11 +08:00
cp -r data jars "$pkgdir/usr/share/$pkgname/"
find "$pkgdir/usr/share/$pkgname" -type d -exec chmod 755 '{}' \;
find "$pkgdir/usr/share/$pkgname" -type f -exec chmod 644 '{}' \;
2011-01-24 06:28:51 +08:00
}