blob: baeaba50576e19a76d071835a00fe45e77107f97 (
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
|
# Contributor: Leonardo Arena <rnalrd@alpinelinux.org>
# Maintainer:
pkgname=flightgear
pkgver=2018.3.2
pkgrel=0
pkgdesc="Sophisticated flight simulator"
url="http://flightgear.org"
arch="x86 x86_64" # openscenegraph availability
license="GPL"
makedepends="$depends_dev boost-dev cmake curl-dev dbus-dev eudev-dev
freeglut-dev glew-dev libx11-dev libxi-dev libxmu-dev mesa-dev
openal-soft-dev openscenegraph-dev plib qt5-qtbase-dev
qt5-qtdeclarative-dev qt5-qtsvg-dev simgear zlib-dev"
install="$pkgname.post-install"
subpackages="$pkgname-doc $pkgname-dbg"
options="!check" # FIXME test suite does not get built
source="https://downloads.sourceforge.net/project/$pkgname/release-${pkgver%.[1-9]*}/$pkgname-$pkgver.tar.bz2
musl-fixes.patch
"
builddir="$srcdir"/$pkgname-$pkgver
build() {
cd "$builddir"
mkdir _build.tmp && cd _build.tmp
cmake \
-D BUILD_TESTING=ON \
-D CMAKE_BUILD_TYPE="Release" \
-D CMAKE_INSTALL_PREFIX=/usr \
-D CMAKE_INSTALL_SYSCONFDIR=/etc/$pkgname \
-D FG_DATA_DIR=/var/lib/$pkgname \
-D SimGear_DIR=/usr/lib/cmake/SimGear \
..
make
}
check() {
cd "$builddir/_build.tmp"
make test
}
package() {
cd "$builddir/_build.tmp"
make DESTDIR="$pkgdir" install
}
sha512sums="76a127949351fe48d847a1471002ecbc3daa769952fef7a7a141e83031771e87f4e23c329e9d03ddd2e99b4b96fb6af2ebe5ab90ca50c0111217c62492cd516d flightgear-2018.3.2.tar.bz2
3350de9e465dc4f865d2a94d96b2f79b4c98c994fc4713cfa296c20ed12129f310779171b89639f69d1e4f5f0103fca6cc01df5a9e25d77f93a0b4e76f6b973a musl-fixes.patch"
|