aboutsummaryrefslogtreecommitdiffstats
path: root/testing/simgear/APKBUILD
blob: 234a4cc6db8ead950a9e56c0ef893981c3ba6ba9 (plain) (blame)
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
# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=simgear
pkgver=2018.3.2
pkgrel=1
pkgdesc="Sim library for FlightGear"
options="!check" # Accepts boost only up to 1.71.0
url="https://github.com/FlightGear/simgear"
arch="x86 x86_64" # openscenegraph availability
license="GPL"
makedepends="$depends_dev boost-dev cmake curl-dev mesa-dev openal-soft-dev
	openscenegraph-dev zlib-dev"
subpackages=
source="https://downloads.sourceforge.net/project/flightgear/release-${pkgver%.[0-9]}/simgear-$pkgver.tar.bz2
	musl-fixes.patch
	"
builddir="$srcdir"/$pkgname-$pkgver

prepare() {
	cd "$builddir"
	default_prepare
	mkdir sgbuild && cd sgbuild
	cmake .. \
		-DCMAKE_BUILD_TYPE=Release \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib \
		-D_POSIX_C_SOURCE=200112L \
		-DENABLE_TESTS=false
}

build() {
	cd "$builddir/sgbuild"
	make
}

package() {
	cd "$builddir/sgbuild"
	make DESTDIR="$pkgdir" install
}

sha512sums="3f60df34f22ea84bdb3e0aa0e2c0b73b2fddf15d17ea985aee254bf4c269b7447976629a7e4b022c460c7c406940d0b2669b723c6b899499d064cfe91546f0ba  simgear-2018.3.2.tar.bz2
7efcf01c9328b0732ae9aa7af4edb52e14919663a8d3acbe429a0697f59a55e85a71628d9afaa3d38327d960dbf5dacc1f964e38dd6cb499b593ae2be918b140  musl-fixes.patch"