1 # Maintainer: Sven-Hendrik Haase <svenstaro@archlinux.org>
2 # Contributor: Arkham <arkham at archlinux dot us>
3 # Contributor: Christoph Zeiler <archNOSPAM_at_moonblade.dot.org>
8 pkgdesc='A free 3D real-time-strategy (RTS) game engine'
10 url="http://springrts.com/"
12 depends=('openal' 'glew' 'minizip' 'freetype2' 'devil' 'libvorbis' 'sdl2' 'libunwind'
13 'libxcursor' 'curl' 'shared-mime-info' 'desktop-file-utils' 'libx11' 'jsoncpp')
14 makedepends=('cmake' 'zip' 'xz' 'p7zip' 'python' 'jdk8-openjdk' 'mesa')
15 optdepends=('python: python-based bots'
16 'java-runtime: java-based bots')
17 source=("https://springrts.com/dl/buildbot/default/master/106.0/source/spring_106.0_src.tar.gz"
19 sha512sums=('d76bec4cc106ed23f09699d702b9d14b76e32f4e34beac2313268c2ef29f6379a970efaee209d4db5dc7c6323d1a47882b10c5c4faa0744087fada227ed91f7b'
20 '68bbffe545fe5200ab7273954a1aad7fdc67ba904a0a3d86f9fb6b02cd2e716ab9623da8b8bf92c1efda269b161ee28432aa7e0f8899ad914491648fae13e34a')
25 patch -Np1 -i ../spring-gcc12.patch
26 #remove bundled libraries
27 rm -r tools/pr-downloader/src/lib/jsoncpp
28 rm -r tools/pr-downloader/src/lib/minizip
36 -DCMAKE_INSTALL_PREFIX=/usr \
37 -DDATADIR=share/spring \
38 -DJAVA_HOME=/usr/lib/jvm/java-8-openjdk \
39 -DCMAKE_SKIP_RPATH=ON \
40 -DPRD_JSONCPP_INTERNAL=OFF
47 DESTDIR="$pkgdir" make -C build install
49 install -d "$pkgdir/etc/spring"
50 echo '$HOME/.spring' > "$pkgdir/etc/spring/datadir"