aboutsummaryrefslogtreecommitdiffstats
path: root/community/kosmindoormap/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/kosmindoormap/APKBUILD')
-rw-r--r--community/kosmindoormap/APKBUILD60
1 files changed, 60 insertions, 0 deletions
diff --git a/community/kosmindoormap/APKBUILD b/community/kosmindoormap/APKBUILD
new file mode 100644
index 0000000000..ecdd414382
--- /dev/null
+++ b/community/kosmindoormap/APKBUILD
@@ -0,0 +1,60 @@
+# Contributor: Bart Ribbers <bribbers@disroot.org>
+# Maintainer: Bart Ribbers <bribbers@disroot.org>
+pkgname=kosmindoormap
+pkgver=21.04.2
+pkgrel=0
+# armhf blocked by qt5-qtdeclarative
+arch="all !armhf"
+url="https://invent.kde.org/libraries/kosmindoormap"
+pkgdesc="OSM multi-floor indoor map renderer"
+license="BSD-2-Clause AND BSD-3-Clause MIT AND LGPL-2.0-or-later"
+depends_dev="
+ ki18n-dev
+ kpublictransport-dev
+ protobuf-dev
+ qt5-qtbase-dev
+ qt5-qtdeclarative-dev
+ zlib-dev
+ "
+makedepends="$depends_dev
+ bison
+ extra-cmake-modules
+ flex
+ "
+source="https://download.kde.org/stable/release-service/$pkgver/src/kosmindoormap-$pkgver.tar.xz"
+subpackages="$pkgname-dev $pkgname-lang"
+
+build() {
+ cmake -B build \
+ -DCMAKE_BUILD_TYPE=None \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_INSTALL_LIBDIR=lib
+ cmake --build build
+}
+
+check() {
+ cd build
+
+ local skipped_tests="("
+ local tests="
+ "
+ if [ "$CARCH" = "x86" ]; then
+ tests="$tests
+ levelparser
+ platformfinder
+ "
+ fi
+ for test in $tests; do
+ skipped_tests="$skipped_tests|$test"
+ done
+ skipped_tests="$skipped_tests)test"
+ CTEST_OUTPUT_ON_FAILURE=TRUE ctest -E "$skipped_tests"
+}
+
+package() {
+ DESTDIR="$pkgdir" cmake --install build
+}
+
+sha512sums="
+1bf6513577f0033009deaa506fcddd4407beaf0d8e44e2661b76352e851e154ce3a99e9f1e78c33428f2cdd7f4ba6637dc56882f7dbf97e583140a7972e82449 kosmindoormap-21.04.2.tar.xz
+"