blob: 099707a66b43f2dc1185d655a27bba3b5679752c (
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
|
# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=simgear
pkgver=2016.4.4
pkgrel=0
pkgdesc="Sim library for FlightGear"
url="https://github.com/FlightGear/simgear"
arch="all"
license="GPL"
depends=
depends_dev=
makedepends="$depends_dev boost-dev cmake curl-dev mesa-dev openal-soft-dev
openscenegraph-dev zlib-dev"
install=
subpackages=
source="$pkgname-$pkgver.tar.gz::https://github.com/FlightGear/simgear/archive/version/$pkgver.tar.gz
musl-fixes.patch
"
builddir="$srcdir"/$pkgname-version-$pkgver
prepare() {
cd "$builddir"
default_prepare || return 1
mkdir sgbuild && cd sgbuild || return 1
cmake .. \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib \
-D_POSIX_C_SOURCE=200112L \
|| return 1
}
build() {
cd "$builddir/sgbuild"
make || return 1
}
package() {
cd "$builddir/sgbuild"
make DESTDIR="$pkgdir" install || return 1
}
md5sums="a10e5b381910da3549cc81a6768a0a4b simgear-2016.4.4.tar.gz
f82f0f46dbb53e87f2df467f82da9000 musl-fixes.patch"
sha256sums="621c6b6acc9b93f6160ed292e88622fe65c38db70c79d9c8f71cd85a268ac780 simgear-2016.4.4.tar.gz
d85530b21c8bec1980e9a4483b937d526daef4a3be347da2795ac98ef30bdd43 musl-fixes.patch"
sha512sums="c30911ff3c45c9bb9882c12ba41fe345da133eb0ea4e19998c60c78e0b73c8838b2c99073834c22e1673b240febfcb416854626fe32928b2045ba64a607d1570 simgear-2016.4.4.tar.gz
7efcf01c9328b0732ae9aa7af4edb52e14919663a8d3acbe429a0697f59a55e85a71628d9afaa3d38327d960dbf5dacc1f964e38dd6cb499b593ae2be918b140 musl-fixes.patch"
|