desktop/spring/PKGBUILD
2017-05-31 23:42:59 +02:00

38 lines
1.0 KiB
Bash

pkgname=spring
_pkgname=springrts
pkgver=101.0
pkgrel=3
pkgdesc='A 3D real-time-strategy game engine.'
arch=('x86_64')
url="http://springrts.com/"
license=('GPL')
depends=('openal' 'glew' 'boost-libs' 'freetype2' 'devil' 'libvorbis' 'sdl2' 'libunwind'
'libxcursor' 'curl' 'shared-mime-info' 'desktop-file-utils' 'libx11')
makedepends=('boost' 'cmake' 'zip' 'xz' 'p7zip' 'python2' 'java-environment' 'mesa')
optdepends=('python2: python-based bots'
'java-runtime: java-based bots')
install=spring.install
source=("http://downloads.sourceforge.net/sourceforge/$_pkgname/${pkgname}_${pkgver}_src.tar.lzma")
md5sums=('26d7558c86f0af615211f629eaccffa6')
build() {
bsdtar -xf ${pkgname}_${pkgver}_src.tar.lzma
cd ${pkgname}_$pkgver
cmake . \
-DCMAKE_INSTALL_PREFIX=/usr \
-DDATADIR=share/spring \
-DCMAKE_SKIP_RPATH=YES
make
}
package() {
cd spring_${pkgver}
make DESTDIR="$pkgdir" install
install -d "$pkgdir/etc/spring"
echo '$HOME/.spring' > "$pkgdir/etc/spring/datadir"
}