archrelease: copy trunk to extra-x86_64
[arch-packages.git] / marble / repos / extra-x86_64 / PKGBUILD
blob9dc2afe74d6e068ebca086c83f297d5708aee6fa
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.12.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 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         no-knewstuff.patch)
19 sha256sums=('88511d31b17bcbc389c7aabbf0ca64bfa01239c0d5763f2877c8c75837968d71'
20             'SKIP'
21             '4718d89d5f0dc79969196ea7afc71bfd37ed9570c3e2718f0c54549bbb0991a1')
22 validpgpkeys=(CA262C6C83DE4D2FB28A332A3A6A4DB839EAA6D7  # Albert Astals Cid <aacid@kde.org>
23               F23275E4BF10AFC1DF6914A6DBD2CE893E2D1C87  # Christoph Feck <cfeck@kde.org>
24               D81C0CB38EB725EF6691C385BB463350D6EF31EF) # Heiko Becker <heiko.becker@kde.org>
26 prepare() {
27   patch -d $pkgbase-$pkgver -p1 < no-knewstuff.patch # Drop unused dependency
30 build() {
31   cmake -B build -S $pkgbase-$pkgver \
32     -DCMAKE_INSTALL_PREFIX=/usr \
33     -DCMAKE_INSTALL_SYSCONFDIR=/etc \
34     -DQT_PLUGINS_DIR=lib/qt/plugins \
35     -DBUILD_TESTING=OFF \
36     -DBUILD_TOUCH=ON \
37     -DBUILD_MARBLE_EXAMPLES=OFF \
38     -DBUILD_MARBLE_TESTS=OFF \
39     -DMOBILE=OFF
40   cmake --build build
43 package_marble-common() {
44   pkgdesc='Common libraries and plugins for Marble'
45   depends=(qt5-svg qt5-webengine phonon-qt5 protobuf)
46   optdepends=('gpsd: GPS based geolocation'
47               'libwlocate: WLAN based geolocation'
48               'qt5-serialport: APRS plugin'
49               'shapelib: SHP plugin')
51   DESTDIR="$pkgdir" cmake --install build
52   rm -r "$pkgdir"/usr/share/{config.kcfg,kxmlgui5,metainfo,plasma} \
53         "$pkgdir"/usr/bin \
54         "$pkgdir"/usr/lib/qt/{qml,plugins/*.so,plugins/kf5} \
55         "$pkgdir"/usr/share/applications/{marble_geo.desktop,marble_worldwind.desktop,org.kde.marble*.desktop} \
56         "$pkgdir"/usr/share/kservices5/{plasma-*,marble_part.desktop} \
57         "$pkgdir"/usr/share/locale/*/LC_MESSAGES/*.mo
60 package_marble-qt() {
61   pkgdesc+=' (Qt version)'
62   depends=(marble-common)
64   DESTDIR="$pkgdir" cmake --install build/src/apps/marble-qt
67 package_marble() {
68   depends=(marble-common kparts)
69   optdepends=('krunner: Krunner plugin')
70   groups=(kde-applications kde-education)
72   DESTDIR="$pkgdir" cmake --install build/src/apps/marble-kde
73   DESTDIR="$pkgdir" cmake --install build/src/plasma
74   DESTDIR="$pkgdir" cmake --install build/src/plasmarunner
75   DESTDIR="$pkgdir" cmake --install build/src/thumbnailer
76   rm -r "$pkgdir"/usr/share/{icons,doc}
79 package_marble-maps() {
80   pkgdesc='OpenStreetMap Navigation'
81   depends=(marble-common kirigami2)
83   DESTDIR="$pkgdir" cmake --install build/src/apps/marble-maps