archrelease: copy trunk to community-any
[ArchLinux/community.git] / spring / trunk / PKGBUILD
blob4665b749e420fe159c6538e6887f74daf0e253ae
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>
5 pkgname=spring
6 pkgver=106.0
7 pkgrel=2
8 pkgdesc='A free 3D real-time-strategy (RTS) game engine'
9 arch=('x86_64')
10 url="http://springrts.com/"
11 license=('GPL')
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"
18          spring-gcc12.patch)
19 sha512sums=('d76bec4cc106ed23f09699d702b9d14b76e32f4e34beac2313268c2ef29f6379a970efaee209d4db5dc7c6323d1a47882b10c5c4faa0744087fada227ed91f7b'
20             '68bbffe545fe5200ab7273954a1aad7fdc67ba904a0a3d86f9fb6b02cd2e716ab9623da8b8bf92c1efda269b161ee28432aa7e0f8899ad914491648fae13e34a')
22 prepare() {
23   cd spring_$pkgver
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
31 build() {
32   cd spring_$pkgver
34   cmake \
35     -Bbuild \
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
41   make -C build
44 package() {
45   cd spring_$pkgver
47   DESTDIR="$pkgdir" make -C build install
49   install -d "$pkgdir/etc/spring"
50   echo '$HOME/.spring' > "$pkgdir/etc/spring/datadir"
53 # vim sw=2:ts=2 et: