aboutsummaryrefslogtreecommitdiffstats
path: root/community/pure-maps/APKBUILD
blob: 43ce35e92ca2d6a750357663436327796d5a9930 (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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
# 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
arch="all !armhf !s390x !mips !mips64"
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
"