mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-24 02:22:13 +08:00
41 lines
1.2 KiB
Bash
41 lines
1.2 KiB
Bash
#
|
|
# Games Packages for Chakra, part of chakraos.org
|
|
#
|
|
# Maintainer: Adrián Chaves Fernández (Gallaecio) <adriyetichaves gmail.com>
|
|
|
|
pkgname=freecol
|
|
_pkgname=FreeCol
|
|
pkgver=0.11.2
|
|
pkgrel=1
|
|
pkgdesc="A turn-based strategy game based on Colonization"
|
|
arch=('x86_64')
|
|
url="http://www.freecol.org/"
|
|
license=('GPL')
|
|
depends=('java-runtime')
|
|
#makedepends=('apache-ant')
|
|
categories=('games')
|
|
source=(http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver-src.zip
|
|
main.desktop
|
|
main.sh)
|
|
md5sums=('25ff61ef058d34bc62c276d33c066639'
|
|
'68922dfb7c1db20c13c4eb6930f9bd93'
|
|
'058e8125acc3b475e90cb2be7cd8f55a')
|
|
|
|
build() {
|
|
cd "$srcdir/$pkgname"
|
|
}
|
|
|
|
package() {
|
|
cd "$srcdir/$pkgname"
|
|
|
|
install -Dm644 FreeCol.jar "$pkgdir/usr/share/java/$pkgname/FreeCol.jar"
|
|
install -Dm644 doc/FreeCol.tex "$pkgdir/usr/share/doc/$pkgname/FreeCol.pdf"
|
|
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"
|
|
|
|
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 '{}' \;
|
|
}
|