freecol: update to 0.11.6

This commit is contained in:
gnastyle 2016-04-27 14:22:11 +02:00
parent 3aaad7467f
commit c597bba45f
3 changed files with 13 additions and 27 deletions

View File

@ -1,40 +1,30 @@
#
# 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
pkgver=0.11.6
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
source=(http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.zip
main.desktop
main.sh)
md5sums=('25ff61ef058d34bc62c276d33c066639'
'68922dfb7c1db20c13c4eb6930f9bd93'
'058e8125acc3b475e90cb2be7cd8f55a')
build() {
cd "$srcdir/$pkgname"
}
sha1sums=('084acb6c3c86ce7b1935dfc9a60596ab9547c8fe'
'1c0b0f685bf88a3c3618bcf6414ace6cddf1ffd0'
'f14f60f487e96ce5bd848357e5ba5a2c4d7d2fd2')
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 FreeCol.jar "$pkgdir/usr/share/$pkgname/FreeCol.jar"
install -Dm644 FreeCol.pdf "$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 '{}' \;
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 '{}' \;
}

View File

@ -8,5 +8,5 @@ Comment=A turn-based strategy game based on Colonization™.
Comment[gl]=Un xogo de estratexia por quendas baseado no Colonization.
TryExec=/usr/bin/freecol
Exec=freecol
Icon=/usr/share/pixmaps/freecol.xpm
Icon=freecol
Categories=Game;StrategyGame;

View File

@ -1,9 +1,5 @@
#!/bin/bash
FC_PATH=/usr/share/java/freecol
LOG_PATH=/tmp/freecol
FC_PATH=/usr/share/freecol
[ ! -d "$LOG_PATH" ] && install -dm755 $LOG_PATH
cd $LOG_PATH
java -Xmx256M -jar $FC_PATH/freecol.jar "$@" --freecol-data $FC_PATH/data \
&> ./messages.log
java -Xmx512M -jar $FC_PATH/FreeCol.jar "$@" --freecol-data $FC_PATH/data --no-intro