aboutsummaryrefslogtreecommitdiffstats
path: root/community/pure-maps
diff options
context:
space:
mode:
Diffstat (limited to 'community/pure-maps')
-rw-r--r--community/pure-maps/APKBUILD78
1 files changed, 78 insertions, 0 deletions
diff --git a/community/pure-maps/APKBUILD b/community/pure-maps/APKBUILD
new file mode 100644
index 0000000000..5fc22b38d7
--- /dev/null
+++ b/community/pure-maps/APKBUILD
@@ -0,0 +1,78 @@
+# Contributor: Bart Ribbers <bribbers@disroot.org>
+# Contributor: Newbyte <newbytee@protonmail.com>
+# Maintainer: Bart Ribbers <bribbers@disroot.org>
+pkgname=pure-maps
+pkgver=2.7.5
+pkgrel=0
+pkgdesc="Maps and navigation"
+url="https://github.com/rinigus/pure-maps"
+# armhf blocked by mapbox-gl-qml -> qt5-qtdeclarative-dev
+# s390x, mips64 blocked by mimic1
+# riscv64 blocked by luajit -> osmscout-server
+arch="all !armhf !s390x !mips64 !riscv64"
+license="GPL-3.0-or-later"
+depends="
+ geoclue
+ kirigami2
+ mapbox-gl-qml
+ mimic1
+ nemo-qml-plugin-dbus
+ osmscout-server
+ py3-gpxpy
+ py3-pyotherside
+ qml-module-clipboard
+ qmlrunner
+ qt5-qtbase-sqlite
+ qt5-qtlocation
+ qt5-qtmultimedia
+ qt5-qtsensors
+ "
+makedepends="
+ cmake
+ gettext
+ py3-pyflakes
+ python3
+ qt5-qtbase-dev
+ qt5-qtlocation-dev
+ qt5-qtquickcontrols2-dev
+ qt5-qttools-dev
+ qtchooser
+ s2geometry-dev
+ "
+checkdepends="py3-pytest"
+subpackages="$pkgname-lang"
+source="https://github.com/rinigus/pure-maps/releases/download/$pkgver/pure-maps-$pkgver.tar.gz"
+
+build() {
+ cmake -B build \
+ -DCMAKE_BUILD_TYPE=None \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DFLAVOR="kirigami" \
+ -DDEFAULT_PROFILE="offline" \
+ -DDEFAULT_FONTPROVIDER="osmscout"
+ cmake --build build
+}
+
+check() {
+ # Disabled as they require API keys to be present and/or an internet connection
+ pytest geocoders guides poor routers \
+ -k 'not test_geocode and not test_autocomplete_type and not test_nearby and not test_get and not test_autocomplete'
+}
+
+package() {
+ DESTDIR="$pkgdir" cmake --install build
+
+ # Locales get installed to the wrong location and thus have to be moved
+ # to get picked up by abuild lang()
+ mv "$pkgdir"/usr/share/pure-maps/locale "$pkgdir"/usr/share
+}
+
+lang() {
+ default_lang
+
+ amove usr/share/pure-maps/translations
+}
+
+sha512sums="
+182fbe9293124b08b15f08895502151f1a9df8f8db0e6b502166a77eecdd77f1eb0f38addcc2a036a2fb72a8d063c2d3df8cd3aae9460ccd848a7f6e289225d0 pure-maps-2.7.5.tar.gz
+"