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

pkgname=spring
_pkgname=springrts
8
pkgver=94.0
9
pkgrel=1
10 11 12 13
pkgdesc='A 3D real-time-strategy game engine.'
arch=('i686' 'x86_64')
url="http://springrts.com/"
license=('GPL2')
14
depends=('boost' 'devil' 'freetype2' 'glew' 'icu' 'libvorbis' 'openal')
15 16 17
makedepends=('cmake' 'java-environment' 'lzma-utils' 'p7zip' 'python' 'zip')
optdepends=('java-runtime: java-based bots.')
source=("http://downloads.sourceforge.net/sourceforge/$_pkgname/${pkgname}_${pkgver}_src.tar.lzma")
18
md5sums=('707829e3a5f3f296da83aab8651cd5e5')
19 20 21 22 23

build() {
  bsdtar -xf ${pkgname}_${pkgver}_src.tar.lzma
  
  cd ${pkgname}_$pkgver
24

25
  cmake \
26 27 28
    -DCMAKE_INSTALL_PREFIX=/usr \
    -DDATADIR=share/spring \
    .
29 30 31 32 33

  make
}

package() {
34
  cd ${pkgname}_$pkgver
35 36 37 38 39
  make DESTDIR=$pkgdir install

  install -d $pkgdir/etc/spring
  echo '$HOME/.spring' > $pkgdir/etc/spring/datadir
}