2010-12-31 19:20:53 +08:00
|
|
|
pkgname=spring
|
|
|
|
_pkgname=springrts
|
2016-03-01 07:14:08 +08:00
|
|
|
pkgver=101.0
|
2016-03-16 06:36:54 +08:00
|
|
|
pkgrel=2
|
2010-12-31 19:20:53 +08:00
|
|
|
pkgdesc='A 3D real-time-strategy game engine.'
|
2014-06-11 21:14:30 +08:00
|
|
|
arch=('x86_64')
|
2010-12-31 19:20:53 +08:00
|
|
|
url="http://springrts.com/"
|
2014-10-10 00:38:16 +08:00
|
|
|
license=('GPL')
|
2015-10-12 07:54:05 +08:00
|
|
|
depends=('openal' 'glew' 'boost-libs' 'freetype2' 'devil' 'libvorbis' 'sdl2' 'libunwind'
|
2014-10-10 00:38:16 +08:00
|
|
|
'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
|
2010-12-31 19:20:53 +08:00
|
|
|
source=("http://downloads.sourceforge.net/sourceforge/$_pkgname/${pkgname}_${pkgver}_src.tar.lzma")
|
2016-03-01 07:14:08 +08:00
|
|
|
md5sums=('26d7558c86f0af615211f629eaccffa6')
|
2010-12-31 19:20:53 +08:00
|
|
|
|
|
|
|
build() {
|
|
|
|
bsdtar -xf ${pkgname}_${pkgver}_src.tar.lzma
|
|
|
|
|
|
|
|
cd ${pkgname}_$pkgver
|
2013-02-13 06:13:43 +08:00
|
|
|
|
2014-10-10 00:38:16 +08:00
|
|
|
cmake . \
|
2011-12-18 07:19:44 +08:00
|
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
|
|
-DDATADIR=share/spring \
|
2014-10-10 00:38:16 +08:00
|
|
|
-DCMAKE_SKIP_RPATH=YES
|
2010-12-31 19:20:53 +08:00
|
|
|
make
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2014-10-10 00:38:16 +08:00
|
|
|
cd spring_${pkgver}
|
|
|
|
|
|
|
|
make DESTDIR="$pkgdir" install
|
2010-12-31 19:20:53 +08:00
|
|
|
|
2014-10-10 00:38:16 +08:00
|
|
|
install -d "$pkgdir/etc/spring"
|
|
|
|
echo '$HOME/.spring' > "$pkgdir/etc/spring/datadir"
|
2010-12-31 19:20:53 +08:00
|
|
|
}
|