Subject: [PATCH] testing/stellarium: new aport

From: Drew DeVault <[email-masked]>
Date: Fri, 16 Aug 2019 10:54:39 +0900

---
 testing/stellarium/APKBUILD | 37 +++++++++++++++++++++++++++++++++++++
 1 file changed, 37 insertions(+)
 create mode 100644 testing/stellarium/APKBUILD

diff --git a/testing/stellarium/APKBUILD b/testing/stellarium/APKBUILD
new file mode 100644
index 0000000000..6d5d54e7c6
--- /dev/null
+++ b/testing/stellarium/APKBUILD
@@ -0,0 +1,37 @@
+# Maintainer: Drew DeVault <[email-masked]>
+pkgname=stellarium
+pkgver=0.19.1
+pkgrel=0
+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"
+depends=""
+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() {
+	# Exclude a broken locale test
+	ctest -E testStelSkyCultureMgr
+}
+
+package() {
+	make DESTDIR="$pkgdir" install
+}
+
+sha512sums="59ab715f7b81e037ed3d23444547dcd00a41b9a1925d58b40a17372e286bbea2c1b762582cd7e1f81d690204840cc23dd9627e2c0bd4abf52367a456849eefe9  stellarium-0.19.1.tar.gz"
-- 
2.22.1