archrelease: copy trunk to extra-x86_64
[arch-packages.git] / marble / trunk / PKGBUILD
blob95dbc3c5df9d9f1c402b5fca1dcdac7e1b385c79
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=23.04.1
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 sha256sums=('d41e1793e72ac1fd46d39127a70accbcf738c00fe3adbd1159cb32e47f4294d2'
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>
24 build() {
25   cmake -B build -S $pkgbase-$pkgver \
26     -DCMAKE_INSTALL_PREFIX=/usr \
27     -DCMAKE_INSTALL_SYSCONFDIR=/etc \
28     -DQT_PLUGINS_DIR=lib/qt/plugins \
29     -DBUILD_TESTING=OFF \
30     -DBUILD_TOUCH=ON \
31     -DBUILD_MARBLE_EXAMPLES=OFF \
32     -DBUILD_MARBLE_TESTS=OFF \
33     -DMOBILE=OFF
34   cmake --build build
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} \
47         "$pkgdir"/usr/bin \
48         "$pkgdir"/usr/lib/qt/{qml,plugins/*.so,plugins/kf5} \
49         "$pkgdir"/usr/share/applications/{marble_geo.desktop,marble_worldwind.desktop,org.kde.marble*.desktop} \
50         "$pkgdir"/usr/share/kservices5/{plasma-*,marble_part.desktop} \
51         "$pkgdir"/usr/share/locale/*/LC_MESSAGES/*.mo
54 package_marble-qt() {
55   pkgdesc+=' (Qt version)'
56   depends=(marble-common)
58   DESTDIR="$pkgdir" cmake --install build/src/apps/marble-qt
61 package_marble() {
62   depends=(marble-common kparts)
63   optdepends=('krunner: Krunner plugin')
64   groups=(kde-applications kde-education)
66   DESTDIR="$pkgdir" cmake --install build/src/apps/marble-kde
67   DESTDIR="$pkgdir" cmake --install build/src/plasma
68   DESTDIR="$pkgdir" cmake --install build/src/plasmarunner
69   DESTDIR="$pkgdir" cmake --install build/src/thumbnailer
70   rm -r "$pkgdir"/usr/share/{icons,doc}
73 package_marble-maps() {
74   pkgdesc='OpenStreetMap Navigation'
75   depends=(marble-common kirigami2)
77   DESTDIR="$pkgdir" cmake --install build/src/apps/marble-maps