desktop/freecol/PKGBUILD

50 lines
1.3 KiB
Bash
Raw Normal View History

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
_pkgname=FreeCol
2012-02-23 21:40:43 +08:00
pkgver=0.10.5
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')
source=(http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver-src.zip
main.desktop
main.sh)
2012-02-23 21:40:43 +08:00
md5sums=('96948b3e2d764dfd78ed7c3e456d972b'
2011-01-25 06:01:41 +08:00
'68922dfb7c1db20c13c4eb6930f9bd93'
'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() {
cd $srcdir/$pkgname
2011-01-24 06:28:51 +08:00
2011-09-09 04:25:52 +08:00
# Binary.
install -Dm644 $_pkgname.jar $pkgdir/usr/share/java/$pkgname/$pkgname.jar
2011-09-09 04:25:52 +08:00
# Documentation.
install -Dm644 doc/$_pkgname.pdf $pkgdir/usr/share/doc/$pkgname/$pkgname.pdf
2011-09-09 04:25:52 +08:00
# Desktop integration.
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.
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.
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
}