diff options
author | Leonardo Arena <rnalrd@alpinelinux.org> | 2019-02-28 10:24:19 +0000 |
---|---|---|
committer | Leonardo Arena <rnalrd@alpinelinux.org> | 2019-02-28 10:24:31 +0000 |
commit | 060b8a868a4319608a6b010c71c4d4aad738812c (patch) | |
tree | 9caba3f782365085aef8d7f43da6ee2f81e40f63 /testing/flightgear | |
parent | 9b9800afdc9594fdc80648e8fa956e838344f999 (diff) | |
download | aports-060b8a868a4319608a6b010c71c4d4aad738812c.tar.bz2 aports-060b8a868a4319608a6b010c71c4d4aad738812c.tar.xz |
testing/flightgear: upgrade to 2018.3.2
Diffstat (limited to 'testing/flightgear')
-rw-r--r-- | testing/flightgear/APKBUILD | 22 |
1 files changed, 13 insertions, 9 deletions
diff --git a/testing/flightgear/APKBUILD b/testing/flightgear/APKBUILD index 20682141b0..dea8076898 100644 --- a/testing/flightgear/APKBUILD +++ b/testing/flightgear/APKBUILD @@ -1,7 +1,7 @@ # Contributor: Leonardo Arena <rnalrd@alpinelinux.org> # Maintainer: pkgname=flightgear -pkgver=2018.2.2 +pkgver=2018.3.2 pkgrel=0 pkgdesc="Sophisticated flight simulator" url="http://flightgear.org" @@ -10,9 +10,10 @@ 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 simgear zlib-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 " @@ -22,22 +23,25 @@ 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 \ - .. || return 1 + .. + make } -package() { +check() { cd "$builddir/_build.tmp" - make DESTDIR="$pkgdir" install || return 1 + make test +} - # 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 +package() { + cd "$builddir/_build.tmp" + make DESTDIR="$pkgdir" install } -sha512sums="f845fcd24e14a4d3abba5f6011d6fe61d4c8ab587989b597c2ab16d75711e9dc6808d6c91e2ba56ff7d644278bc10e09c116e82ba0f6391b03c5bc84a546f440 flightgear-2018.2.2.tar.bz2 +sha512sums="76a127949351fe48d847a1471002ecbc3daa769952fef7a7a141e83031771e87f4e23c329e9d03ddd2e99b4b96fb6af2ebe5ab90ca50c0111217c62492cd516d flightgear-2018.3.2.tar.bz2 3350de9e465dc4f865d2a94d96b2f79b4c98c994fc4713cfa296c20ed12129f310779171b89639f69d1e4f5f0103fca6cc01df5a9e25d77f93a0b4e76f6b973a musl-fixes.patch" |