aboutsummaryrefslogblamecommitdiffstats
path: root/community/stellarium/APKBUILD
blob: 59b1e9b9a708ab60421a9855864b4952dc88eeee (plain) (tree)
1
2
3
4

                                          
             
        






















                                                                                                                            
                                        
                                      
                                                                                                   





                                      
                                                                                                                                                                       
# Maintainer: Drew DeVault <sir@cmpwn.com>
pkgname=stellarium
pkgver=0.19.2
pkgrel=1
pkgdesc="A stellarium with great graphics and a nice database of sky-objects"
url="http://stellarium.org/"
arch="all"
license="GPL-2.0-or-later"
makedepends="
	cmake boost-dev mesa-dev qt5-qttools-dev libpng-dev freetype-dev
	openssl-dev qt5-qtscript-dev qt5-qtserialport-dev qt5-qtmultimedia-dev
	qt5-qtlocation-dev gpsd-dev
"
subpackages="$pkgname-doc"
source="
	$pkgname-$pkgver.tar.gz::https://github.com/Stellarium/stellarium/releases/download/v$pkgver/$pkgname-$pkgver.tar.gz
"

build() {
	cmake \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DENABLE_TESTING=1 \
		.
	make
}

check() {
	[ "$CARCH" = "x86" ] && return 0
	# Exclude a broken locale test
	ctest -E 'test(INDIConnection|TelescopeControl_INDI|TelescopeClientINDI|StelSkyCultureMgr)'
}

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

sha512sums="a0002dc8a1e43aa264cdf013b57362880d4809207a1f867285d3e1187c4c88c67d166652afe0edeec5a98eff1167e6c3693594d467605ba78ee29d6eb7878d4b  stellarium-0.19.2.tar.gz"