template 1007 B

12345678910111213141516171819202122232425262728293031
  1. # Template file for 'ark'
  2. pkgname=ark
  3. version=20.08.1
  4. revision=1
  5. build_style=cmake
  6. hostmakedepends="extra-cmake-modules qt5-devel qt5-qmake
  7. kdoctools kconfig gettext pkg-config"
  8. makedepends="libarchive-devel kpty-devel kparts-devel kitemmodels-devel libzip-devel"
  9. short_desc="KDE Archiving Tool"
  10. maintainer="John <me@johnnynator.dev>"
  11. license="GPL-2.0-or-later"
  12. homepage="https://kde.org/applications/en/utilities/org.kde.ark"
  13. distfiles="${KDE_SITE}/release-service/${version}/src/${pkgname}-${version}.tar.xz"
  14. checksum=32e8546b186b88efc9d4688e02def0b6225d921f9b92cfcd328417f09ec0f725
  15. if [ "$CROSS_BUILD" ]; then
  16. hostmakedepends+=" python3 kcoreaddons kparts"
  17. configure_args="-DDESKTOPTOJSON_EXECUTABLE=/usr/bin/desktoptojson"
  18. fi
  19. pre_configure() {
  20. # Commands below are taken and modified from "prepare" function of:
  21. # https://git.parabola.nu/abslibre.git/tree/libre/ark/PKGBUILD
  22. rm -rv plugins/clirarplugin
  23. rm -rv autotests/plugins/clirarplugin
  24. }
  25. pre_check() {
  26. export QT_QPA_PLATFORM=offscreen
  27. }