mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-25 02:52:13 +08:00
49 lines
1.3 KiB
Bash
49 lines
1.3 KiB
Bash
#
|
|
# Games Packages for Chakra, part of chakra-project.org
|
|
#
|
|
# Maintainer: Adrián Chaves Fernández (Gallaecio) <adriyetichaves gmail.com>
|
|
|
|
pkgname=freecol
|
|
_pkgname=FreeCol
|
|
pkgver=0.10.3
|
|
pkgrel=1
|
|
pkgdesc="A turn-based strategy game based on Colonization"
|
|
arch=('any')
|
|
url="http://www.freecol.org/"
|
|
license=('GPL')
|
|
depends=('java-runtime')
|
|
makedepends=('apache-ant')
|
|
source=(http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver-src.zip
|
|
main.desktop
|
|
main.sh)
|
|
md5sums=('e98a1584b3430b1536640aaf6eb3c100'
|
|
'68922dfb7c1db20c13c4eb6930f9bd93'
|
|
'058e8125acc3b475e90cb2be7cd8f55a')
|
|
|
|
build() {
|
|
cd $srcdir/$pkgname
|
|
ant
|
|
}
|
|
|
|
package() {
|
|
cd $srcdir/$pkgname
|
|
|
|
# Binary.
|
|
install -Dm644 $_pkgname.jar $pkgdir/usr/share/java/$pkgname/$pkgname.jar
|
|
|
|
# Documentation.
|
|
install -Dm644 doc/$_pkgname.pdf $pkgdir/usr/share/doc/$pkgname/$pkgname.pdf
|
|
|
|
# Desktop integration.
|
|
install -Dm644 $pkgname.xpm $pkgdir/usr/share/pixmaps/$pkgname.xpm
|
|
install -Dm644 $srcdir/main.desktop $pkgdir/usr/share/applications/$pkgname.desktop
|
|
|
|
# Execution script.
|
|
install -Dm755 $srcdir/main.sh $pkgdir/usr/bin/$pkgname
|
|
|
|
# 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 '{}' \;
|
|
}
|