PKGBUILD 1.77 KB
Newer Older
1 2 3 4 5 6
#
# Games Packages for Chakra, part of chakra-project.org
#
# Maintainer: Adrián Chaves Fernández (Gallaecio) <adriyetichaves@gmail.com>

pkgname=hale
7
pkgver=0.6.2
8
pkgrel=1
9
pkgdesc="Role-playing game with a deep tactical combat system and storyline"
10 11 12 13 14 15
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')
Giuseppe's avatar
Giuseppe committed
16
categories=('games')
17
source=(http://downloads.sourceforge.net/project/$pkgname/$pkgname-$pkgver.zip)
18
md5sums=('7629d31774bee8d9a350a173d0c6a2e3')
19 20 21 22 23 24 25 26 27 28 29

build() {
    cd $srcdir/$pkgname

    mkdir -p bin
    javac @compilerargs.txt

    cd bin
    jar cf hale.jar *
    cp hale.jar ../
}
30 31 32 33 34 35 36 37

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
38

39
  for FOLDER in campaigns characters core docs lib
40 41 42 43
  do
    cp -R $FOLDER $pkgdir/usr/share/$pkgname/
  done

44 45 46
  mkdir -p $pkgdir/usr/share/$pkgname/lib/native/linux
  cp lib/*.jar $pkgdir/usr/share/$pkgname/lib/

47
  SUFFIX=64
48 49 50 51 52
  for FILE in libjinput-linux liblwjgl libopenal
  do
    cp lib/native/linux/${FILE}${SUFFIX}.so $pkgdir/usr/share/$pkgname/lib/native/linux/
  done

53 54
  # Execution script.
  install -d $pkgdir/usr/bin
55 56
  echo "#!/bin/bash"                              > $pkgdir/usr/bin/$pkgname
  echo "cd /usr/share/$pkgname && ./$pkgname.sh" >> $pkgdir/usr/bin/$pkgname
57 58 59
  chmod +x $pkgdir/usr/bin/$pkgname

  # Legal.
60 61 62
  install -d $pkgdir/usr/share/licenses/$pkgname
  cp docs/* $pkgdir/usr/share/licenses/$pkgname/
  cp lib/*.txt $pkgdir/usr/share/licenses/$pkgname/
63
}