desktop/spring/PKGBUILD
Adrian Chaves Fernandez (Gallaecio) 08d79c015f Spring 94.0
2013-03-24 00:09:17 +00:00

40 lines
980 B
Bash

#
# Games Packages for Chakra, part of chakra-project.org
#
# Maintainer: Adrián Chaves Fernández (Gallaecio) <adriyetichaves@gmail.com>
pkgname=spring
_pkgname=springrts
pkgver=94.0
pkgrel=1
pkgdesc='A 3D real-time-strategy game engine.'
arch=('i686' 'x86_64')
url="http://springrts.com/"
license=('GPL2')
depends=('boost' 'devil' 'freetype2' 'glew' 'icu' 'libvorbis' 'openal')
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")
md5sums=('707829e3a5f3f296da83aab8651cd5e5')
build() {
bsdtar -xf ${pkgname}_${pkgver}_src.tar.lzma
cd ${pkgname}_$pkgver
cmake \
-DCMAKE_INSTALL_PREFIX=/usr \
-DDATADIR=share/spring \
.
make
}
package() {
cd ${pkgname}_$pkgver
make DESTDIR=$pkgdir install
install -d $pkgdir/etc/spring
echo '$HOME/.spring' > $pkgdir/etc/spring/datadir
}