1 # Maintainer: Jaroslav Lichtblau <svetlemodry@archlinux.org>
2 # Contributor: Alexander Rødseth <rodseth@gmail.com>
3 # Contributor: Jaroslaw Swierczynski <swiergot@aur.archlinux.org>
4 # Contributor: Roman Kyrylych <Roman.Kyrylych@gmail.com>
9 pkgdesc='An innovative Real-Time Strategy game which reduces micro-management by automatically assigning tasks to units'
11 url='https://www.globulation2.org/'
13 depends=('boost-libs' 'sdl_net' 'sdl_image' 'sdl_ttf' 'libvorbis' 'speex' 'glu'
14 'fribidi' 'xdg-utils' 'libgl' 'hicolor-icon-theme')
15 makedepends=('scons' 'boost' 'mesa' 'patch')
16 source=(https://dl.sv.nongnu.org/releases/$pkgname/${pkgver%.*}/$pkgname-$pkgver.tar.gz
17 glob2-0.9.4.1-gcc44.patch fix-ftbfs-gcc49.diff
22 sha256sums=('0f4d898ec6b05ce27b4a12ef242cc26571304b90d2509932a4743c71311314b8'
23 '3a0cfc06696d1aaf2d7948b5f6a09a8ce96492767039dc09bfc25182b92d7b7a'
24 '2bf0e51ca5de8c6f4910b68522a0265e07bb32beefe13b9912b59e5954c5bfba'
25 'a371eb801407a75021c1a0105ffa1e713358d7def3eba8a9bd861f528e051d9b'
26 '4b7833d58d62abb8c737cb60e959fe3bb27cc4a19917e4fd5fca7a7debada5cc'
27 '81d28fde429be01ae2398ca33537daf9203bafb45182d51f04b2d00dd173b591'
28 '6daec0ee916f6bbc4e9696a0a713e2b06e4951381d508af814e67e980bd28664')
33 patch -p0 -i "$srcdir/glob2-0.9.4.1-gcc44.patch"
34 patch -p1 -i "$srcdir/fix-ftbfs-gcc49.diff"
35 patch -p1 -i "$srcdir/glob2-gcc6.patch"
36 patch -p1 -i "$srcdir/glob2-scons3.patch"
37 patch -p1 -i "$srcdir/glob2-bool.patch"
38 patch -p1 -i ../scons-python3.patch
44 scons LINKFLAGS="-lboost_system"
50 scons install BINDIR="$pkgdir/usr/bin" INSTALLDIR="$pkgdir/usr/share"
51 find "$pkgdir/usr/share" -type f -exec chmod 644 '{}' \;
52 install -Dm644 "data/icons/$pkgname-icon-48x48.png" \
53 "$pkgdir/usr/share/pixmaps/$pkgname-icon-48x48.png"