archrelease: copy trunk to extra-x86_64
[arch-packages.git] / marble / trunk / PKGBUILD
blob0790e0ad280b766891f36f818b61c8f114635fba
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>
7 pkgbase=marble
8 pkgname=(marble-common marble-qt marble-maps marble)
9 pkgver=22.04.3
10 pkgrel=1
11 pkgdesc='Desktop Globe'
12 arch=(x86_64)
13 url='https://apps.kde.org/marble/'
14 license=(GPL)
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=('438d4ef317231b8f2377f64ebfe9249ce669103fb71105c9d7de35a39bbef771'
19             'SKIP')
20 validpgpkeys=(CA262C6C83DE4D2FB28A332A3A6A4DB839EAA6D7  # Albert Astals Cid <aacid@kde.org>
21               F23275E4BF10AFC1DF6914A6DBD2CE893E2D1C87  # Christoph Feck <cfeck@kde.org>
22               D81C0CB38EB725EF6691C385BB463350D6EF31EF) # Heiko Becker <heiko.becker@kde.org>
23 options=(debug)
25 build() {
26   cmake -B build -S $pkgbase-$pkgver \
27     -DCMAKE_INSTALL_PREFIX=/usr \
28     -DCMAKE_INSTALL_SYSCONFDIR=/etc \
29     -DQT_PLUGINS_DIR=lib/qt/plugins \
30     -DBUILD_TESTING=OFF \
31     -DBUILD_TOUCH=ON \
32     -DBUILD_MARBLE_EXAMPLES=OFF \
33     -DBUILD_MARBLE_TESTS=OFF \
34     -DMOBILE=OFF
35   cmake --build build
38 package_marble-common() {
39   pkgdesc='Common libraries and plugins for Marble'
40   depends=(qt5-svg qt5-webengine phonon-qt5 protobuf)
41   optdepends=('gpsd: GPS based geolocation'
42               'libwlocate: WLAN based geolocation'
43               'qt5-serialport: APRS plugin'
44               'shapelib: SHP plugin')
46   DESTDIR="$pkgdir" cmake --install build
47   rm -r "$pkgdir"/usr/share/{config.kcfg,kxmlgui5,metainfo,plasma} \
48         "$pkgdir"/usr/bin \
49         "$pkgdir"/usr/share/knsrcfiles \
50         "$pkgdir"/usr/lib/qt/{qml,plugins/*.so,plugins/kf5} \
51         "$pkgdir"/usr/share/applications/{marble_geo.desktop,marble_worldwind.desktop,org.kde.marble*.desktop} \
52         "$pkgdir"/usr/share/kservices5/{plasma-*,marble_part.desktop} \
53         "$pkgdir"/usr/share/locale/*/LC_MESSAGES/*.mo
56 package_marble-qt() {
57   pkgdesc+=' (Qt version)'
58   depends=(marble-common)
60   DESTDIR="$pkgdir" cmake --install build/src/apps/marble-qt
63 package_marble() {
64   depends=(marble-common knewstuff kparts)
65   optdepends=('krunner: Krunner plugin')
66   groups=(kde-applications kde-education)
68   DESTDIR="$pkgdir" cmake --install build/src/apps/marble-kde
69   DESTDIR="$pkgdir" cmake --install build/src/plasma
70   DESTDIR="$pkgdir" cmake --install build/src/plasmarunner
71   DESTDIR="$pkgdir" cmake --install build/src/thumbnailer
72   rm -r "$pkgdir"/usr/share/{icons,doc}
75 package_marble-maps() {
76   pkgdesc='OpenStreetMap Navigation'
77   depends=(marble-common kirigami2)
79   DESTDIR="$pkgdir" cmake --install build/src/apps/marble-maps