OCaml 4.14.0 rebuild
[arch-packages.git] / marble / kde-unstable / PKGBUILD
bloba6ebbc39d1eee7bd06ea1d6ce4e2ce1787292d02
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.07.90
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/unstable/release-service/$pkgver/src/$pkgbase-$pkgver.tar.xz{,.sig}
18         no-knewstuff.patch)
19 sha256sums=('9abcdaae532e6f0649bdc80d3a4ed61b84a1ac0a012e130e8c71094ac9fa6c2b'
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>
25 options=(debug)
27 prepare() {
28   patch -d $pkgbase-$pkgver -p1 < no-knewstuff.patch # Drop unused dependency
31 build() {
32   cmake -B build -S $pkgbase-$pkgver \
33     -DCMAKE_INSTALL_PREFIX=/usr \
34     -DCMAKE_INSTALL_SYSCONFDIR=/etc \
35     -DQT_PLUGINS_DIR=lib/qt/plugins \
36     -DBUILD_TESTING=OFF \
37     -DBUILD_TOUCH=ON \
38     -DBUILD_MARBLE_EXAMPLES=OFF \
39     -DBUILD_MARBLE_TESTS=OFF \
40     -DMOBILE=OFF
41   cmake --build build
44 package_marble-common() {
45   pkgdesc='Common libraries and plugins for Marble'
46   depends=(qt5-svg qt5-webengine phonon-qt5 protobuf)
47   optdepends=('gpsd: GPS based geolocation'
48               'libwlocate: WLAN based geolocation'
49               'qt5-serialport: APRS plugin'
50               'shapelib: SHP plugin')
52   DESTDIR="$pkgdir" cmake --install build
53   rm -r "$pkgdir"/usr/share/{config.kcfg,kxmlgui5,metainfo,plasma} \
54         "$pkgdir"/usr/bin \
55         "$pkgdir"/usr/lib/qt/{qml,plugins/*.so,plugins/kf5} \
56         "$pkgdir"/usr/share/applications/{marble_geo.desktop,marble_worldwind.desktop,org.kde.marble*.desktop} \
57         "$pkgdir"/usr/share/kservices5/{plasma-*,marble_part.desktop} \
58         "$pkgdir"/usr/share/locale/*/LC_MESSAGES/*.mo
61 package_marble-qt() {
62   pkgdesc+=' (Qt version)'
63   depends=(marble-common)
65   DESTDIR="$pkgdir" cmake --install build/src/apps/marble-qt
68 package_marble() {
69   depends=(marble-common kparts)
70   optdepends=('krunner: Krunner plugin')
71   groups=(kde-applications kde-education)
73   DESTDIR="$pkgdir" cmake --install build/src/apps/marble-kde
74   DESTDIR="$pkgdir" cmake --install build/src/plasma
75   DESTDIR="$pkgdir" cmake --install build/src/plasmarunner
76   DESTDIR="$pkgdir" cmake --install build/src/thumbnailer
77   rm -r "$pkgdir"/usr/share/{icons,doc}
80 package_marble-maps() {
81   pkgdesc='OpenStreetMap Navigation'
82   depends=(marble-common kirigami2)
84   DESTDIR="$pkgdir" cmake --install build/src/apps/marble-maps