# Maintainer (Arch): Felix Yan # Maintainer (Arch): Antonio Rojas # Contributor (Arch): Andrea Scarpino # Contributor: André Silva # Contributor: jc_gargma # Maintainer: Andreas Grapentin # Contributor: grizzlyuser # Contributor: Denis 'GNUtoo' Carikli # rational for inclusion in libre: # - removed support for not freedom-respecting search engines pkgname=kio pkgver=5.76.0 pkgrel=1 pkgrel+=.parabola1 pkgdesc='Resource and network access abstraction' pkgdesc+=', only with search engines that claim to respect user privacy and do not serve nonfree JavaScript' arch=(x86_64) arch+=(i686 armv7h) url='https://community.kde.org/Frameworks' license=(LGPL) depends=(solid kjobwidgets kbookmarks libxslt kwallet ktextwidgets kded) makedepends=(extra-cmake-modules kdoctools doxygen qt5-tools qt5-doc) optdepends=('kio-extras: extra protocols support (sftp, fish and more)' 'kdoctools: for the help kioslave' 'knetattach: to add new kio-remote entries' 'kio-fuse: to mount remote filesystems via FUSE') groups=(kf5) source=("https://download.kde.org/stable/frameworks/${pkgver%.*}/$pkgname-$pkgver.tar.xz"{,.sig}) sha256sums=('9351fc85c4020f2f77012e077f4f9d04d8f233e9b67f9b7619c9bc064714145b' 'SKIP') source+=(duckduckgo_{html,lite}.desktop) sha256sums+=('31910ab7393e67609f15e04a57f6406f63e6dae58b01bce0787741bc5958f292' '40466a9dad7075f2525e9e024720da7d7b49a22892b6fca8b81cc0e6408d2f7d') validpgpkeys=(53E6B47B45CEA3E0D5B7457758D0EE648A48B3BB) # David Faure prepare() { cd $pkgname-$pkgver # Removing search providers rm -v src/urifilters/ikws/searchproviders/*.desktop # Adding DuckDuckGo HTML and DuckDuckGo Lite # Contributions of other search engines that satisfy pkgdesc are welcome! cp -v "$srcdir"/duckduckgo_{html,lite}.desktop src/urifilters/ikws/searchproviders } build() { cmake -B build -S $pkgname-$pkgver \ -DCMAKE_INSTALL_LIBEXECDIR=lib \ -DBUILD_TESTING=OFF \ -DBUILD_QCH=ON cmake --build build } package() { DESTDIR="$pkgdir" cmake --install build }