desktop/spring/PKGBUILD

47 lines
1.3 KiB
Bash
Raw Normal View History

pkgname=spring
_pkgname=springrts
2018-09-19 08:33:01 +08:00
pkgver=104.0
pkgrel=1
pkgdesc='A 3D real-time-strategy game engine.'
2014-06-11 21:14:30 +08:00
arch=('x86_64')
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')
2018-09-19 08:33:01 +08:00
source=("https://downloads.sourceforge.net/sourceforge/$_pkgname/${pkgname}_${pkgver}_src.tar.lzma"
fix-reinterpret_cast-in-constexpr.patch)
sha256sums=('ceb0bf59f8aac14f2d844f920e898724913326cdf1adf3f10d88ecc317a3ec16'
'982b8a4da8e6ccb8f4f977d7f75de0206ad4ccf488d0843ad37bab34f7e35bca')
prepare() {
cd spring_$pkgver
# https://springrts.com/mantis/view.php?id=5781
# https://github.com/spring/spring/commit/6104061fe3
patch -Np1 -i ../fix-reinterpret_cast-in-constexpr.patch
}
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
make
}
package() {
2014-10-10 00:38:16 +08:00
cd spring_${pkgver}
make DESTDIR="$pkgdir" install
2014-10-10 00:38:16 +08:00
install -d "$pkgdir/etc/spring"
2018-09-19 08:33:01 +08:00
echo '$HOME/.local/share/spring' > "$pkgdir/etc/spring/datadir"
}