2011-09-24 05:37:20 +08:00
|
|
|
#
|
|
|
|
# Games Packages for Chakra, part of chakra-project.org
|
|
|
|
#
|
|
|
|
# Maintainer: Adrián Chaves Fernández (Gallaecio) <adriyetichaves@gmail.com>
|
|
|
|
|
|
|
|
pkgname=hale
|
2012-11-03 07:37:59 +08:00
|
|
|
pkgver=0.6.0
|
2011-09-24 05:37:20 +08:00
|
|
|
pkgrel=1
|
2012-08-13 01:09:05 +08:00
|
|
|
pkgdesc="Role-playing game with a deep tactical combat system and storyline"
|
2011-09-24 05:37:20 +08:00
|
|
|
arch=(any)
|
|
|
|
url="http://sourceforge.net/apps/mediawiki/hale/index.php?title=Main_Page"
|
|
|
|
screenshot="http://sourceforge.net/apps/gallery/hale/main.php?g2_view=core.DownloadItem&g2_itemId=92&g2_serialNumber=2"
|
|
|
|
license=('GPL2')
|
|
|
|
depends=('java-runtime')
|
|
|
|
options=('!strip')
|
2012-03-07 19:00:46 +08:00
|
|
|
categories=('games')
|
2011-09-24 05:37:20 +08:00
|
|
|
source=(http://downloads.sourceforge.net/project/$pkgname/$pkgname-$pkgver.zip)
|
2012-11-03 07:37:59 +08:00
|
|
|
md5sums=('2541ada8d03d0d4e6192186b79bdc33f')
|
2012-08-13 01:09:05 +08:00
|
|
|
|
|
|
|
build() {
|
|
|
|
cd $srcdir/$pkgname
|
|
|
|
|
|
|
|
mkdir -p bin
|
|
|
|
javac @compilerargs.txt
|
|
|
|
|
|
|
|
cd bin
|
|
|
|
jar cf hale.jar *
|
|
|
|
cp hale.jar ../
|
|
|
|
}
|
2011-09-24 05:37:20 +08:00
|
|
|
|
|
|
|
package() {
|
|
|
|
cd $srcdir/$pkgname
|
|
|
|
|
|
|
|
# Main.
|
|
|
|
install -Dm755 hale.sh $pkgdir/usr/share/$pkgname/hale.sh
|
|
|
|
install -Dm755 hale.jar $pkgdir/usr/share/$pkgname/hale.jar
|
|
|
|
install -Dm755 core.zip $pkgdir/usr/share/$pkgname/core.zip
|
2011-09-24 05:40:42 +08:00
|
|
|
install -d $pkgdir/usr/share/$pkgname/saves
|
2011-09-24 06:00:05 +08:00
|
|
|
install -d $pkgdir/usr/share/$pkgname/log
|
2012-08-13 01:09:05 +08:00
|
|
|
|
|
|
|
for FOLDER in gui characters campaigns docs
|
2011-09-24 05:37:20 +08:00
|
|
|
do
|
|
|
|
cp -R $FOLDER $pkgdir/usr/share/$pkgname/
|
|
|
|
done
|
|
|
|
|
2012-08-13 01:09:05 +08:00
|
|
|
mkdir -p $pkgdir/usr/share/$pkgname/lib/native/linux
|
|
|
|
cp lib/*.jar $pkgdir/usr/share/$pkgname/lib/
|
|
|
|
|
|
|
|
if [[ $CARCH == "x86_64" ]]; then
|
|
|
|
SUFFIX=64
|
|
|
|
fi
|
|
|
|
for FILE in libjinput-linux liblwjgl libopenal
|
|
|
|
do
|
|
|
|
cp lib/native/linux/${FILE}${SUFFIX}.so $pkgdir/usr/share/$pkgname/lib/native/linux/
|
|
|
|
done
|
|
|
|
|
2011-09-24 05:37:20 +08:00
|
|
|
# Write permissions (not really safe…).
|
|
|
|
chmod -R 666 \
|
|
|
|
$pkgdir/usr/share/$pkgname/campaigns \
|
|
|
|
$pkgdir/usr/share/$pkgname/log \
|
|
|
|
$pkgdir/usr/share/$pkgname/saves
|
|
|
|
|
|
|
|
# Execution script.
|
|
|
|
install -d $pkgdir/usr/bin
|
|
|
|
echo "#!/bin/bash" > $pkgdir/usr/bin/$pkgname
|
|
|
|
echo "cd /usr/share/$pkgname && ./$pkgname.sh" >> $pkgdir/usr/bin/$pkgname
|
|
|
|
chmod +x $pkgdir/usr/bin/$pkgname
|
|
|
|
|
|
|
|
# Legal.
|
2012-08-13 01:09:05 +08:00
|
|
|
install -d $pkgdir/usr/share/licenses/$pkgname
|
|
|
|
cp docs/* $pkgdir/usr/share/licenses/$pkgname/
|
|
|
|
cp lib/*.txt $pkgdir/usr/share/licenses/$pkgname/
|
2011-09-24 05:37:20 +08:00
|
|
|
}
|