blob: f59944be9751a4db1ed68084513d6b359cd09059 (
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
56
57
58
59
|
# Contributor: Leonardo Arena <rnarld@alpinelinux.org>
# Maintainer:
pkgname=flightgear
_ver=2016.4
_revision=4
pkgver=${_ver}.$_revision
pkgrel=1
pkgdesc="Sophisticated flight simulator"
url="http://flightgear.org"
arch="all"
license="GPL"
depends=
depends_dev=
makedepends="$depends_dev boost-dev cmake curl-dev dbus-dev eudev-dev
freeglut-dev libx11-dev libxi-dev libxmu-dev mesa-dev openal-soft-dev
openscenegraph-dev plib qt5-qtbase-dev simgear zlib-dev"
install=
subpackages="$pkgname-doc"
source="http://downloads.sourceforge.net/project/$pkgname/release-$_ver/$pkgname-$pkgver.tar.bz2
musl-fixes.patch
fix-link_with_x11.patch
"
builddir="$srcdir"/$pkgname-$pkgver
prepare() {
cd "$builddir"
default_prepare || return 1
}
build() {
cd "$builddir"
mkdir _build.tmp && cd _build.tmp
cmake \
-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 \
.. || return 1
}
package() {
cd "$builddir/_build.tmp"
make DESTDIR="$pkgdir" install || return 1
# remove the 2 lines below (and this) if there is no init.d script
# install -m755 -D "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname
# install -m644 -D "$srcdir"/$pkgname.confd "$pkgdir"/etc/conf.d/$pkgname
}
md5sums="b1a1f12786debaaf8970595cad98d59f flightgear-2016.4.4.tar.bz2
810ba3c0b87ed3c75d51007525f271a6 musl-fixes.patch
38187621345f823ebaab50fdbc34a33b fix-link_with_x11.patch"
sha256sums="d51992cbe40f1812f9821ab27b838d52e04c10551772d57fc2e815f4444dfafc flightgear-2016.4.4.tar.bz2
26e773861007bd4c14bdcebcfc84d428fa99faec5cc2dac7128492800b7bce65 musl-fixes.patch
e54f73160a2904428ec26a679cb70089dbae16753096e9470f42d22b6c718d4c fix-link_with_x11.patch"
sha512sums="3f3d5a72adea9cb9a22b7b355a18492c1c58634e6203d6ae364d7a89f1af0fcc3df446c72c3c83ac9a1f51e05a6cd83c7d7af5f7bc3a5e8e75e3b80f709394a0 flightgear-2016.4.4.tar.bz2
7b66d939578c96e493a974da97cbc3ffc322eea67691d1e87b65514c5b0aaabaddd7426d86560f3ccd43e6c5eb903fd5085c8e58ec07ea15d6d191031d8f3e49 musl-fixes.patch
49d359d213870ad71a3403e93951574b334d8281fbe9553fe259d65e1b0a8659c127cde11ffdf2ba3351c2af2dabe60657dab6dab3ff0c9fecad4a398fd6f2eb fix-link_with_x11.patch"
|