PKGBUILD 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. # Maintainer (arch): Antonio Rojas <arojas@archlinux.org>
  2. # Maintainer (arch): Felix Yan <felixonmars@archlinux.org>
  3. # Contributor: Andrea Scarpino <andrea@archlinux.org>
  4. # Maintainer: Andreas Grapentin <andreas@grapentin.org>
  5. # Contributor: André Silva <emulatorman@hyperbola.info>
  6. # Contributor: jc_gargma <jc_gargma@iserlohn-fortress.net>
  7. # Contributor: SolveFinder <kwopleq@proton.me>
  8. # parabola changes and rationale:
  9. # - remove unrar support
  10. # NOTE: can not package for i686 until arch32 moves 'kcolorscheme' out of staging
  11. pkgname=ark
  12. pkgver=24.02.2
  13. pkgrel=1
  14. pkgrel+=.parabola1
  15. pkgdesc='Archiving Tool'
  16. arch=(x86_64)
  17. arch+=(armv7h i686)
  18. url='https://apps.kde.org/ark/'
  19. license=(GPL-2.0-or-later)
  20. depends=(gcc-libs
  21. glibc
  22. kcolorscheme
  23. kcompletion
  24. kconfig
  25. kconfigwidgets
  26. kcoreaddons
  27. kcrash
  28. kdbusaddons
  29. kfilemetadata
  30. ki18n
  31. kio
  32. kjobwidgets
  33. kparts
  34. kpty
  35. kservice
  36. kwidgetsaddons
  37. kwindowsystem
  38. kxmlgui
  39. libarchive
  40. libzip
  41. qt6-base
  42. sh
  43. zlib)
  44. makedepends=(extra-cmake-modules
  45. kdoctools)
  46. optdepends=('arj: ARJ format support'
  47. 'lrzip: LRZ format support'
  48. 'lzop: LZO format support'
  49. 'p7zip: 7Z format support'
  50. 'unarchiver: RAR format support')
  51. groups=(kde-applications
  52. kde-utilities)
  53. source=(https://download.kde.org/stable/release-service/$pkgver/src/$pkgname-$pkgver.tar.xz{,.sig})
  54. sha256sums=('06374f5c7c2aee7a93c04bfd7b6b3baaeab3962e8277c9087fea54ba9805bdce'
  55. 'SKIP')
  56. validpgpkeys=(CA262C6C83DE4D2FB28A332A3A6A4DB839EAA6D7 # Albert Astals Cid <aacid@kde.org>
  57. F23275E4BF10AFC1DF6914A6DBD2CE893E2D1C87 # Christoph Feck <cfeck@kde.org>
  58. D81C0CB38EB725EF6691C385BB463350D6EF31EF) # Heiko Becker <heiko.becker@kde.org>
  59. # parabola mksource over-rides
  60. mksource=( ${source[*]} )
  61. mksha256sums=( ${sha256sums[*]} )
  62. mkvalidpgpkeys=( ${validpgpkeys[*]} )
  63. source=(https://repo.parabola.nu/other/${pkgname}-libre/${pkgname}-${pkgver}.fsdg.tar.gz{,.sig})
  64. sha256sums=('5e21ed0968584258f292c4afadecd42a0aba0e0c3801e7fe13b2fe87df90ca6b'
  65. 'SKIP')
  66. validpgpkeys=('3954A7AB837D0EA9CFA9798925DB7D9B5A8D4B40') # bill-auger
  67. mksource() {
  68. # Remove unrar plugin
  69. sed -i '/clirarplugin/d' "$pkgname-$pkgver/plugins/CMakeLists.txt"
  70. sed -i 's/unar or unrar/unar/' "$pkgname-$pkgver/plugins/cliunarchiverplugin/CMakeLists.txt"
  71. rm -rv $pkgname-$pkgver/plugins/clirarplugin
  72. }
  73. build() {
  74. cmake -B build -S $pkgname-$pkgver \
  75. -DBUILD_TESTING=OFF
  76. cmake --build build
  77. }
  78. package() {
  79. DESTDIR="$pkgdir" cmake --install build
  80. }