aboutsummaryrefslogtreecommitdiffstats
path: root/community/stellarium/APKBUILD
blob: afe3c607678cd727c996541b05673cadda2543ef (plain) (blame)
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
# Contributor: Leo <thinkabit.ukim@gmail.com>
# Maintainer: Drew DeVault <sir@cmpwn.com>
pkgname=stellarium
pkgver=0.20.4
pkgrel=0
pkgdesc="A stellarium with great graphics and a nice database of sky-objects"
url="http://stellarium.org/"
arch="all !mips !mips64 !armhf" # Limited by qt5-qtmultimedia-dev
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="29e14d56a93db672b5163e6f21dda462fe6c5598d9791bf9a98f414f662c26e0826b3892e3a888688371d805bbddbf5fb47f193c4e16d754fe83fbfb9559e5ae  stellarium-0.20.4.tar.gz"