aboutsummaryrefslogblamecommitdiffstats
path: root/testing/flightgear/APKBUILD
blob: c50f787f7e2f1c29913d73d3911ae40ff2c52184 (plain) (tree)
1
2
3
4
5
6
7
8
                                                      
                                                    
                  



                                      
                           







                                                                                          
                               





                                
                                                      








                                                                                                        
         
 
         
               
                                     
                                               
                                                      



                                                           
                 
            

 
         

                 
 
           
                                      

                                                                                                           

 









                                                                                                                                                               
# Contributor: Leonardo Arena <rnalrd@alpinelinux.org>
# Maintainer: Thomas Kienlen <kommander@laposte.net>
pkgname=flightgear
pkgver=2020.3.11
_pkgver=${pkgver%.*}
pkgrel=0
pkgdesc="Flight Gear Flight Simulator"
url="http://flightgear.org"
arch="all !riscv64 !x86 !armhf !armv7" # limited by openscenegraph and build compatibility
license="GPL-2.0-or-later"
makedepends="
	boost-dev cmake curl-dev dbus-dev eudev-dev freeglut-dev glew-dev
	libexecinfo-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-dev zlib-dev
	"
install="$pkgname.post-install"
subpackages="
	$pkgname-dbg
	$pkgname-doc
	$pkgname-bash-completion
	$pkgname-zsh-completion
	"
options="!check" # FIXME test suite does not get built
source="
	https://downloads.sourceforge.net/project/flightgear/release-$_pkgver/flightgear-$pkgver.tar.bz2
	musl-fenv.patch
	musl-fix_error_h.patch
	musl-fix_feenableexcept.patch
	musl-fix_fpos_t.patch
	musl-include-fcntl.patch
	musl-fix_backtrace.patch
	flightgear-data-downloader.sh
	"

build() {
	cmake \
		-D BUILD_TESTING=ON \
		-D CMAKE_BUILD_TYPE="Release" \
		-D CMAKE_EXE_LINKER_FLAGS=-lexecinfo \
		-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() {
	make test
}

package() {
	make DESTDIR="$pkgdir" install

	install -Dm755 "$srcdir"/flightgear-data-downloader.sh "$pkgdir"/usr/bin/flightgear-data-downloader
}

sha512sums="
9a7c6f262da8daf3d954df7a2a8a96e555f3212c1d949211d0dbddd08a8f7380fa8f4986d60f48e17db563154d250184ee772b79b10277a2c5819fabec3930ee  flightgear-2020.3.11.tar.bz2
81ffb1ecfceae8d4ebb14717fb785118b3c290171245762cb4ab85be769582576147fe1b1b60fe854f4dd8079ebaf913da1585809ba9048d55f8710159c05614  musl-fenv.patch
b477510a102b0d01859ab39ddf7b5c4bcd3b80aa522320b2128095228b643d5e067dd61f8edbef7df7ed1a35aea647444126ba58eb39a82d294ae8a0f6e808e5  musl-fix_error_h.patch
29d12098c2581122234188cadd929238c41258bf347de2fcd30dabb46e398d19566e064b2a4267370bf7669c5dcde2c87ef1232b7b1a9ed27ad7885a26378b05  musl-fix_feenableexcept.patch
3a5d280bcd806fbdeb7b2f92435ffa7b44c420494ae658060624dfa34709a2b36448c1ca8c81bff1e4bb2878fa55200eb69535699062aff5286c7f640fbc3081  musl-fix_fpos_t.patch
89f871216cac9bf772c6f7a4d12d79ff73a38179547464ffa93ed24394309cb085719c0de5e2a82e2086e994cbf886a8763e4c577fdda476ddbab0e3e3dea4cd  musl-include-fcntl.patch
c9d680759fc163366d352bf7b96850a71303b427b0664a50e6ebc7bb11a2d4910cc18988cbc9c305f8a18307c8c2d739559a9358f7f682b34a5b41a126f35567  musl-fix_backtrace.patch
8efecffaa9b4445d4915255d18a2b09bf63330c226815d88b070476f7d71c941fa444088f8f641b5c235b509dfd0b4edf8e287aa85830c3306dd5a4a23d64901  flightgear-data-downloader.sh
"