PKGBUILD 3.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. # Maintainer (arch): Felix Yan <felixonmars@archlinux.org>
  2. # Maintainer (arch): Antonio Rojas <arojas@archlinux.org>
  3. # Contributor: Andrea Scarpino <andrea@archlinux.org>
  4. # Contributor: André Silva <emulatorman@hyperbola.info>
  5. # Contributor: jc_gargma <jc_gargma@iserlohn-fortress.net>
  6. # Maintainer: Andreas Grapentin <andreas@grapentin.org>
  7. # Contributor: grizzlyuser <grizzlyuser@protonmail.com>
  8. # Contributor: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
  9. # Contributor: bill-auger <bill-auger@programmer.net>
  10. # parabola changes and rationale:
  11. # - replace non-privacy search engines
  12. # - pin to strongly-coupled dependency versions
  13. pkgname=kio
  14. pkgver=5.103.0
  15. pkgrel=1
  16. pkgrel+=.parabola1
  17. _pkgver_i686=5.100.0
  18. _pkgrel_i686=1.1.parabola1
  19. [[ "${CARCH}" == i686 ]] && eval "pkgver=\$_pkgver_${CARCH}" # our different arches do not
  20. [[ "${CARCH}" == i686 ]] && eval "pkgrel=\$_pkgrel_${CARCH}" # always roll at the same speed
  21. pkgdesc='Resource and network access abstraction'
  22. pkgdesc+=', with privacy-respecting search engines only'
  23. arch=(x86_64)
  24. arch+=(armv7h i686)
  25. url='https://community.kde.org/Frameworks'
  26. license=(LGPL)
  27. depends=(solid kjobwidgets kbookmarks libxslt kwallet ktextwidgets kded)
  28. depends=( ${depends[*]/kded/kded=$pkgver} ) # pin version to other k-things
  29. makedepends=(extra-cmake-modules kdoctools doxygen qt5-tools qt5-doc)
  30. optdepends=('kio-extras: extra protocols support (sftp, fish and more)' 'kdoctools: for the help kioslave'
  31. 'kio-fuse: to mount remote filesystems via FUSE')
  32. groups=(kf5)
  33. source=(https://download.kde.org/stable/frameworks/${pkgver%.*}/$pkgname-$pkgver.tar.xz{,.sig})
  34. source+=(duckduckgo_html.desktop
  35. duckduckgo_lite.desktop
  36. gnupg-keys.desktop
  37. internet-archive.desktop
  38. parabola-packages.desktop
  39. parabola-wiki.desktop
  40. searx.desktop
  41. yacy.desktop)
  42. sha256sums=('0b4837365aa489cc4007badb21f49e7d7729b758020cf2a0717ab12fbf97f447'
  43. 'SKIP')
  44. sha256sums+=('31910ab7393e67609f15e04a57f6406f63e6dae58b01bce0787741bc5958f292'
  45. '40466a9dad7075f2525e9e024720da7d7b49a22892b6fca8b81cc0e6408d2f7d'
  46. '57ded4375e1ddfe747bc55e3c52f4f39d1688f583c6af77da3479f544d262b71'
  47. '5e57f0978b3429dfd2e97f215ab58394dd4c19c5b7e1b6bea9733eae92253e1a'
  48. '7960cfc6b5a4030898cdd9d4699732fd7c1995983a0762ed1121aa2589beedc3'
  49. '45af1a8588246c64c2e306237ef605406c5289c2ff53b5f459315c40c8e5099b'
  50. '0264268855ac59872fe6bde4ce5c7d5f4a9b4d6936f3c2f870fc9a34de323c54'
  51. '0a494a6bd652533b2ac1ea6a139e8b7295da29f840e5d0d7b2aa7e18886887ef')
  52. _sha256sum_i686='088788d32eb38016d92c2fdfe29f337332089efa1f0d3a810cf807c2646d7cb6' # upstream source-ball
  53. [[ "${CARCH/i686/}" ]] || eval "sha256sums[0]=\$_sha256sum_${CARCH}" # upstream source-ball
  54. validpgpkeys=(53E6B47B45CEA3E0D5B7457758D0EE648A48B3BB) # David Faure <faure@kde.org>
  55. options=(debug)
  56. prepare() {
  57. cd "${srcdir}"/${pkgname}-${pkgver}/
  58. # replace default search engines
  59. local searchengines_dir=src/urifilters/ikws/searchproviders
  60. find ${searchengines_dir}/ \
  61. -name *.desktop \
  62. -not -name duckduckgo.desktop \
  63. -not -name fsd.desktop \
  64. -not -name wikipedia.desktop \
  65. -not -name wiktionary.desktop \
  66. -exec rm -f {} \;
  67. cp -v "${srcdir}"/*.desktop ${searchengines_dir}/
  68. }
  69. build() {
  70. cmake -B build -S $pkgname-$pkgver \
  71. -DCMAKE_INSTALL_LIBEXECDIR=lib \
  72. -DBUILD_TESTING=OFF \
  73. -DBUILD_QCH=ON
  74. cmake --build build
  75. }
  76. package() {
  77. DESTDIR="$pkgdir" cmake --install build
  78. }