1 # Maintainer: Antonio Rojas <arojas@archlinux.org>
2 # Maintainer: Felix Yan <felixonmars@archlinux.org>
3 # Contributor: Andrea Scarpino <andrea@archlinux.org>
4 # Contributor: Gustavo Alvarez <sl1pkn07@gmail.com>
5 # Contributor: Balló György <ballogyor+arch at gmail dot com>
8 pkgname=(marble-common marble-qt marble-maps marble)
11 pkgdesc='Desktop Globe'
13 url='https://apps.kde.org/marble/'
15 makedepends=(extra-cmake-modules gpsd kdoctools knewstuff kparts krunner libwlocate phonon-qt5
16 plasma-workspace qt5-serialport qt5-tools qt5-webengine shapelib protobuf)
17 source=(https://download.kde.org/stable/release-service/$pkgver/src/$pkgbase-$pkgver.tar.xz{,.sig})
18 sha256sums=('bc66e9e80480bd281ffbc9263139806349316bbd8eea9baaa59b008aa6d901b0'
20 validpgpkeys=(CA262C6C83DE4D2FB28A332A3A6A4DB839EAA6D7 # Albert Astals Cid <aacid@kde.org>
21 F23275E4BF10AFC1DF6914A6DBD2CE893E2D1C87 # Christoph Feck <cfeck@kde.org>
22 D81C0CB38EB725EF6691C385BB463350D6EF31EF) # Heiko Becker <heiko.becker@kde.org>
25 cmake -B build -S $pkgbase-$pkgver \
26 -DCMAKE_INSTALL_PREFIX=/usr \
27 -DCMAKE_INSTALL_SYSCONFDIR=/etc \
28 -DQT_PLUGINS_DIR=lib/qt/plugins \
31 -DBUILD_MARBLE_EXAMPLES=OFF \
32 -DBUILD_MARBLE_TESTS=OFF \
37 package_marble-common() {
38 pkgdesc='Common libraries and plugins for Marble'
39 depends=(qt5-svg qt5-webengine phonon-qt5 protobuf)
40 optdepends=('gpsd: GPS based geolocation'
41 'libwlocate: WLAN based geolocation'
42 'qt5-serialport: APRS plugin'
43 'shapelib: SHP plugin')
45 DESTDIR="$pkgdir" cmake --install build
46 rm -r "$pkgdir"/usr/share/{config.kcfg,kxmlgui5,metainfo,plasma} \
48 "$pkgdir"/usr/share/knsrcfiles \
49 "$pkgdir"/usr/lib/qt/{qml,plugins/*.so,plugins/kf5} \
50 "$pkgdir"/usr/share/applications/{marble_geo.desktop,marble_worldwind.desktop,org.kde.marble*.desktop} \
51 "$pkgdir"/usr/share/kservices5/marble_part.desktop \
52 "$pkgdir"/usr/share/locale/*/LC_MESSAGES/*.mo
56 pkgdesc+=' (Qt version)'
57 depends=(marble-common)
59 DESTDIR="$pkgdir" cmake --install build/src/apps/marble-qt
63 depends=(marble-common knewstuff kparts)
64 optdepends=('krunner: Krunner plugin')
65 groups=(kde-applications kde-education)
67 DESTDIR="$pkgdir" cmake --install build/src/apps/marble-kde
68 DESTDIR="$pkgdir" cmake --install build/src/plasma
69 DESTDIR="$pkgdir" cmake --install build/src/plasmarunner
70 DESTDIR="$pkgdir" cmake --install build/src/thumbnailer
71 rm -r "$pkgdir"/usr/share/{icons,doc}
74 package_marble-maps() {
75 pkgdesc='OpenStreetMap Navigation'
76 depends=(marble-common kirigami2)
78 DESTDIR="$pkgdir" cmake --install build/src/apps/marble-maps