PKGBUILD 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. # Maintainer (arch): Antonio Rojas <arojas@archlinux.org>
  2. # Maintainer (arch): Felix Yan <felixonmars@archlinux.org>
  3. # Contributor (arch): Andrea Scarpino <andrea@archlinux.org>
  4. # Contributor (arch): Gustavo Alvarez <sl1pkn07@gmail.com>
  5. # Contributor (arch): Balló György <ballogyor+arch at gmail dot com>
  6. # Contributor: bill-auger <bill-auger@programmer.net>
  7. # parabola changes and rationale:
  8. # - replaced qt5-webengine dependency with qt5-webkit
  9. pkgbase=marble
  10. pkgname=(marble-common)
  11. pkgver=20.12.1
  12. pkgrel=2
  13. pkgrel+=.parabola1
  14. pkgdesc="Desktop Globe"
  15. arch=(x86_64)
  16. arch+=(armv7h i686)
  17. url="https://www.kde.org/applications/system/marble"
  18. license=(GPL)
  19. makedepends=(extra-cmake-modules gpsd kdoctools knewstuff kparts krunner libwlocate phonon-qt5
  20. plasma-workspace qt5-serialport qt5-tools qt5-webengine shapelib protobuf)
  21. makedepends=(${makedepends[@]/qt5-webengine/qt5-webkit})
  22. source=("https://download.kde.org/stable/release-service/$pkgver/src/$pkgbase-$pkgver.tar.xz"{,.sig})
  23. sha256sums=('65c936ceefdd368494778e55a921f9d111e6fabab718b948f3f59ede5f446970'
  24. 'SKIP')
  25. validpgpkeys=(CA262C6C83DE4D2FB28A332A3A6A4DB839EAA6D7 # Albert Astals Cid <aacid@kde.org>
  26. F23275E4BF10AFC1DF6914A6DBD2CE893E2D1C87) # Christoph Feck <cfeck@kde.org>
  27. build() {
  28. cmake -B build -S $pkgbase-$pkgver \
  29. -DCMAKE_INSTALL_PREFIX=/usr \
  30. -DCMAKE_INSTALL_SYSCONFDIR=/etc \
  31. -DQT_PLUGINS_DIR=lib/qt/plugins \
  32. -DBUILD_TESTING=OFF \
  33. -DBUILD_MARBLE_EXAMPLES=OFF \
  34. -DBUILD_MARBLE_TESTS=OFF \
  35. -DMOBILE=OFF
  36. cmake --build build
  37. }
  38. package_marble-common() {
  39. pkgdesc='Common libraries and plugins for Marble'
  40. depends=(qt5-svg qt5-webengine phonon-qt5 protobuf)
  41. depends=(${depends[@]/qt5-webengine/qt5-webkit})
  42. optdepends=('gpsd: GPS based geolocation'
  43. 'libwlocate: WLAN based geolocation'
  44. 'qt5-serialport: APRS plugin'
  45. '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} \
  51. "$pkgdir"/usr/share/applications/{marble_geo.desktop,marble_worldwind.desktop,org.kde.marble*.desktop} \
  52. "$pkgdir"/usr/share/kservices5/{marble_part.desktop,plasma*} \
  53. "$pkgdir"/usr/share/locale/*/LC_MESSAGES/*.mo
  54. }