PKGBUILD 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  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. _name=kio
  14. pkgname=${_name}5
  15. pkgver=5.116.0
  16. pkgrel=1
  17. pkgrel+=.parabola1
  18. _pkgver_i686=5.105.0 # n/a i686
  19. _pkgrel_i686=1.0.parabola2 # n/a i686
  20. eval "[[ -v _pkgver_${CARCH} ]] && pkgver=\$_pkgver_${CARCH}" # our different arches do not
  21. eval "[[ -v _pkgrel_${CARCH} ]] && pkgrel=\$_pkgrel_${CARCH}" # always roll at the same speed
  22. pkgdesc='Resource and network access abstraction'
  23. pkgdesc+=', with privacy-respecting search engines only'
  24. arch=(x86_64)
  25. arch+=(armv7h i686)
  26. arch=( ${arch[*]/i686/} ) # n/a i686
  27. url='https://community.kde.org/Frameworks'
  28. license=(LGPL)
  29. depends=(solid5 kjobwidgets5 kbookmarks5 libxslt kwallet5 ktextwidgets5 kded5)
  30. depends=( ${depends[*]/kded5/kded5=$pkgver} ) # pin version to other k-things
  31. makedepends=(extra-cmake-modules kdoctools5 doxygen qt5-tools qt5-doc)
  32. optdepends=('kio5-extras: extra protocols support (sftp, fish and more)'
  33. 'kdoctools5: for the help kioslave'
  34. 'switcheroo-control: hybrid GPU support')
  35. conflicts=("$_name<5.111")
  36. replaces=("$_name<5.111")
  37. groups=(kf5)
  38. source=(https://download.kde.org/stable/frameworks/${pkgver%.*}/$_name-$pkgver.tar.xz{,.sig})
  39. source+=(duckduckgo_html.desktop
  40. duckduckgo_lite.desktop
  41. gnupg-keys.desktop
  42. internet-archive.desktop
  43. parabola-packages.desktop
  44. parabola-wiki.desktop
  45. searx.desktop
  46. yacy.desktop)
  47. sha256sums=('efb719d6659c39a03b165dca3b6c84f729a833290fc44e7e1f99625690b6115a'
  48. 'SKIP')
  49. sha256sums+=('31910ab7393e67609f15e04a57f6406f63e6dae58b01bce0787741bc5958f292'
  50. '40466a9dad7075f2525e9e024720da7d7b49a22892b6fca8b81cc0e6408d2f7d'
  51. '57ded4375e1ddfe747bc55e3c52f4f39d1688f583c6af77da3479f544d262b71'
  52. '5e57f0978b3429dfd2e97f215ab58394dd4c19c5b7e1b6bea9733eae92253e1a'
  53. '7960cfc6b5a4030898cdd9d4699732fd7c1995983a0762ed1121aa2589beedc3'
  54. '45af1a8588246c64c2e306237ef605406c5289c2ff53b5f459315c40c8e5099b'
  55. '0264268855ac59872fe6bde4ce5c7d5f4a9b4d6936f3c2f870fc9a34de323c54'
  56. '0a494a6bd652533b2ac1ea6a139e8b7295da29f840e5d0d7b2aa7e18886887ef')
  57. #_sha256sum_i686='1f971115d3cc488973f74222c9ae3722ac630fa8c02c00d4ba22eb03ceb8677d' # n/a i686
  58. eval "[[ -v _sha256sum_${CARCH} ]] && sha256sums[0]=\$_sha256sum_${CARCH}" # upstream source-ball
  59. validpgpkeys=(53E6B47B45CEA3E0D5B7457758D0EE648A48B3BB) # David Faure <faure@kde.org>
  60. prepare() {
  61. cd "${srcdir}"/${_name}-${pkgver}/
  62. # replace default search engines
  63. local searchengines_dir=src/urifilters/ikws/searchproviders
  64. find ${searchengines_dir}/ \
  65. -name *.desktop \
  66. -not -name duckduckgo.desktop \
  67. -not -name fsd.desktop \
  68. -not -name wikipedia.desktop \
  69. -not -name wiktionary.desktop \
  70. -exec rm -f {} \;
  71. cp -v "${srcdir}"/*.desktop ${searchengines_dir}/
  72. }
  73. build() {
  74. cmake -B build -S $_name-$pkgver \
  75. -DCMAKE_INSTALL_LIBEXECDIR=lib \
  76. -DKF6_COMPAT_BUILD=ON \
  77. -DBUILD_TESTING=OFF \
  78. -DBUILD_QCH=ON
  79. cmake --build build
  80. }
  81. package() {
  82. DESTDIR="$pkgdir" cmake --install build
  83. }