2011-01-24 06:28:51 +08:00
|
|
|
#
|
|
|
|
# Games Packages for Chakra, part of chakra-project.org
|
|
|
|
#
|
|
|
|
# Maintainer: Adrián Chaves Fernández (Gallaecio) <adriyetichaves gmail.com>
|
|
|
|
|
|
|
|
pkgname=freecol
|
2011-07-25 21:17:24 +08:00
|
|
|
_pkgname=FreeCol
|
2013-01-08 05:20:51 +08:00
|
|
|
pkgver=0.10.7
|
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"
|
2011-09-09 04:25:52 +08:00
|
|
|
arch=('any')
|
2011-01-24 06:28:51 +08:00
|
|
|
url="http://www.freecol.org/"
|
|
|
|
license=('GPL')
|
|
|
|
depends=('java-runtime')
|
2011-09-09 04:25:52 +08:00
|
|
|
makedepends=('apache-ant')
|
2012-03-07 19:00:46 +08:00
|
|
|
categories=('games')
|
2011-07-25 21:17:24 +08:00
|
|
|
source=(http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver-src.zip
|
|
|
|
main.desktop
|
|
|
|
main.sh)
|
2013-01-08 05:20:51 +08:00
|
|
|
md5sums=('4ec18d691807d682cea3c2f85e47ae03'
|
2011-01-25 06:01:41 +08:00
|
|
|
'68922dfb7c1db20c13c4eb6930f9bd93'
|
2011-07-25 21:17:24 +08:00
|
|
|
'058e8125acc3b475e90cb2be7cd8f55a')
|
2011-01-24 06:28:51 +08:00
|
|
|
|
2011-09-09 04:25:52 +08:00
|
|
|
build() {
|
|
|
|
cd $srcdir/$pkgname
|
|
|
|
ant
|
|
|
|
}
|
|
|
|
|
2011-01-24 06:28:51 +08:00
|
|
|
package() {
|
2011-07-25 21:17:24 +08:00
|
|
|
cd $srcdir/$pkgname
|
2011-01-24 06:28:51 +08:00
|
|
|
|
2011-09-09 04:25:52 +08:00
|
|
|
# Binary.
|
2011-07-25 21:17:24 +08:00
|
|
|
install -Dm644 $_pkgname.jar $pkgdir/usr/share/java/$pkgname/$pkgname.jar
|
2011-09-09 04:25:52 +08:00
|
|
|
|
|
|
|
# Documentation.
|
2011-07-25 21:17:24 +08:00
|
|
|
install -Dm644 doc/$_pkgname.pdf $pkgdir/usr/share/doc/$pkgname/$pkgname.pdf
|
2011-09-09 04:25:52 +08:00
|
|
|
|
|
|
|
# Desktop integration.
|
2011-07-25 21:17:24 +08:00
|
|
|
install -Dm644 $pkgname.xpm $pkgdir/usr/share/pixmaps/$pkgname.xpm
|
|
|
|
install -Dm644 $srcdir/main.desktop $pkgdir/usr/share/applications/$pkgname.desktop
|
2011-09-09 04:25:52 +08:00
|
|
|
|
|
|
|
# Execution script.
|
2011-07-25 21:17:24 +08:00
|
|
|
install -Dm755 $srcdir/main.sh $pkgdir/usr/bin/$pkgname
|
2011-01-24 06:28:51 +08:00
|
|
|
|
2011-09-09 04:25:52 +08:00
|
|
|
# Data.
|
2011-07-25 21:17:24 +08:00
|
|
|
cp -r data jars $pkgdir/usr/share/java/$pkgname/
|
|
|
|
find $pkgdir/usr/share/java/$pkgname -type d -exec chmod 755 '{}' \;
|
|
|
|
find $pkgdir/usr/share/java/$pkgname -type f -exec chmod 644 '{}' \;
|
2011-01-24 06:28:51 +08:00
|
|
|
}
|