'freecol' added.

This commit is contained in:
chaves 2011-01-23 22:28:51 +00:00
parent bd5ee5008e
commit 2abbf84b78
3 changed files with 58 additions and 0 deletions

39
freecol/PKGBUILD Normal file
View File

@ -0,0 +1,39 @@
#
# Games Packages for Chakra, part of chakra-project.org
#
# Maintainer: Adrián Chaves Fernández (Gallaecio) <adriyetichaves gmail.com>
# include global config
# source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
pkgname=freecol
pkgver=0.9.5
pkgrel=1
pkgdesc="A turn-based strategy game based on Colonization"
arch=('i686' 'x86_64')
url="http://www.freecol.org/"
license=('GPL')
depends=('java-runtime')
source=(http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz
fc.desktop fc.sh)
md5sums=('6d5cb3b18cede24196f360b225ff7ccc'
'55594d770904af3e3e3852d375085357'
'ae473cd1d86f8f764250ee00b6fda90b')
build() {
cd "$srcdir/$pkgname"
}
package() {
cd "$srcdir/$pkgname"
install -Dm644 FreeCol.jar "$pkgdir/usr/share/java/$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 ../fc.desktop "$pkgdir/usr/share/applications/$pkgname.desktop"
install -Dm755 ../fc.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 '{}' \;
}

10
freecol/fc.desktop Normal file
View File

@ -0,0 +1,10 @@
[Desktop Entry]
Version=1.0
Type=Application
Name=FreeCol
GenericName=Strategy Game
Comment=A free Colonization clone
TryExec=/usr/bin/freecol
Exec=freecol
Icon=/usr/share/pixmaps/freecol.xpm
Categories=Game;StrategyGame;

9
freecol/fc.sh Normal file
View File

@ -0,0 +1,9 @@
#!/bin/bash
FC_PATH=/usr/share/java/freecol
LOG_PATH=/tmp/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