aboutsummaryrefslogtreecommitdiffstats
path: root/testing/simgear/APKBUILD
blob: 454892562484471431c5cc551f3753382c9ed487 (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
# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=simgear
pkgver=2018.2.2
pkgrel=0
pkgdesc="Sim library for FlightGear"
url="https://github.com/FlightGear/simgear"
arch="all"
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
}

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

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

sha512sums="2052c8e42bda751bc7c9429525b7acb733d5c0dd32dd4adea078718f89296c635abc956b464887fe67202dcc07a81fbade443a84fe8206648e473fd0f64d9365  simgear-2018.2.2.tar.bz2
7efcf01c9328b0732ae9aa7af4edb52e14919663a8d3acbe429a0697f59a55e85a71628d9afaa3d38327d960dbf5dacc1f964e38dd6cb499b593ae2be918b140  musl-fixes.patch"