aboutsummaryrefslogblamecommitdiffstats
path: root/community/stellarium/APKBUILD
blob: 89e0aa3c116768f4eeb02a49211462457f9b260c (plain) (tree)
1
2
3
4
5
6
7
8
9
10
                                             

                                          
          
        

                                                                             
                                                   

                          





                    
                     





                            

                          
                                                                                                      
                                        

         
                                              

                                         
                                             

                                      
                           


         
                
                                      
                                                                                                                                


           
                                               

 
            
                                                                                                                                                       
 
# Contributor: Leo <thinkabit.ukim@gmail.com>
# Maintainer: Drew DeVault <sir@cmpwn.com>
pkgname=stellarium
pkgver=1.0
pkgrel=0
pkgdesc="A stellarium with great graphics and a nice database of sky-objects"
url="http://stellarium.org/"
arch="all !armhf" # Limited by qt5-qtmultimedia-dev
license="GPL-2.0-or-later"
makedepends="
	boost-dev
	cmake
	freetype-dev
	gpsd-dev
	libpng-dev
	mesa-dev
	openssl-dev>3
	qt5-qtcharts-dev
	qt5-qtlocation-dev
	qt5-qtmultimedia-dev
	qt5-qtscript-dev
	qt5-qtserialport-dev
	qt5-qttools-dev
"
subpackages="$pkgname-doc"
source="https://github.com/Stellarium/stellarium/releases/download/v$pkgver/stellarium-$pkgver.tar.gz"
[ "$CARCH" = "x86" ] && options="!check"

build() {
	# SHOWMYSKY support needs qt5-qtopengl
	cmake -B build \
		-DCMAKE_BUILD_TYPE=None \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DENABLE_TESTING=1 \
		-DENABLE_SHOWMYSKY=OFF
	cmake --build build
}

check() {
	cd build
	# Exclude a broken locale test
	CTEST_OUTPUT_ON_FAILURE=TRUE ctest -E 'test(INDIConnection|TelescopeControl_INDI|TelescopeClientINDI|StelSkyCultureMgr)'
}

package() {
	DESTDIR="$pkgdir" cmake --install build
}

sha512sums="
b0613b5b2921c02e89315971e6a211ac8f09a3031320836f7cb76c6abb951c392834cf08f64ecfdac57227ba8ecc7367e7e7e7ee044243866494494ca12b9167  stellarium-1.0.tar.gz
"