blob: e3ce7b7c97abe0142915663c485d18aa853b6657 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
# Maintainer: Anton Karmanov <a.karmanov@inventati.org>
# Contributor: MCMic <come@chilliet.eu>
pkgname=wyrmsun
pkgver=5.0.1
pkgrel=1
pkgdesc="Real-time strategy game based on history, mythology and fiction"
arch=('i686' 'x86_64')
url="http://andrettin.github.io/"
license=('GPL2')
depends=(
'hicolor-icon-theme'
'qt5-location'
'qt5-multimedia'
'sdl_mixer'
'tolua++'
)
makedepends=('boost' 'cmake' 'glu')
source=("wyrmsun-${pkgver}.tar.gz::https://github.com/Andrettin/Wyrmsun/archive/v${pkgver}.tar.gz"
"wyrmgus-${pkgver}.tar.gz::https://github.com/Andrettin/Wyrmgus/archive/v${pkgver}.tar.gz")
md5sums=('f65843589884dfcdc3b7cd15ed3ee4b3'
'aca08095bc898463237604153c225050')
build() {
cd ${srcdir}/Wyrmgus-${pkgver}
cmake . \
-DCMAKE_BUILD_TYPE=Release \
-DOpenGL_GL_PREFERENCE=GLVND \
-DWITH_GEOJSON=OFF \
;
cmake --build . --target wyrmgus_main
cd "${srcdir}/Wyrmsun-${pkgver}"
cmake . \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX='/usr/' \
-DBIN_DIR='bin/' \
;
cmake --build .
}
check() {
cd ${srcdir}/Wyrmgus-${pkgver}
cmake --build . --target wyrmgus_test
./wyrmgus_test
}
package() {
cd ${srcdir}/Wyrmgus-${pkgver}
mkdir -p "${pkgdir}/usr/bin/"
cp wyrmgus "${pkgdir}/usr/bin/"
cd ${srcdir}/Wyrmsun-${pkgver}
cmake --install . --prefix "${pkgdir}/usr/"
}
|