blob: 65f902aef00b9a0168e648eb68021e9289b03ed9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
|
# Maintainer (arch): Felix Yan <felixonmars@archlinux.org>
# Maintainer (arch): Antonio Rojas <arojas@archlinux.org>
# Contributor: Andrea Scarpino <andrea@archlinux.org>
# Contributor: André Silva <emulatorman@hyperbola.info>
# Contributor: jc_gargma <jc_gargma@iserlohn-fortress.net>
# Maintainer: Andreas Grapentin <andreas@grapentin.org>
# Contributor: grizzlyuser <grizzlyuser@protonmail.com>
# Contributor: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
# Contributor: bill-auger <bill-auger@programmer.net>
# parabola changes and rationale:
# - replace non-privacy search engines
pkgname=kio
pkgver=5.94.0
pkgrel=1
pkgrel+=.parabola1
_pkgver_armv7h=5.82.0
_pkgver_i686=5.83.0
_pkgrel_armv7h=1.parabola1
_pkgrel_i686=1.0.parabola1
[[ "${CARCH}" != 'x86_64' ]] && eval "pkgver=\$_pkgver_${CARCH}" # our different arches do not
[[ "${CARCH}" != 'x86_64' ]] && eval "pkgrel=\$_pkgrel_${CARCH}" # always roll at the same speed
pkgdesc='Resource and network access abstraction'
pkgdesc+=', with privacy-respecting search engines only'
arch=(x86_64)
arch+=(armv7h i686)
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'
'kio-fuse: to mount remote filesystems via FUSE')
groups=(kf5)
source=(https://download.kde.org/stable/frameworks/${pkgver%.*}/$pkgname-$pkgver.tar.xz{,.sig}
https://invent.kde.org/frameworks/kio/-/commit/8ad69215.patch)
source+=(duckduckgo_html.desktop
duckduckgo_lite.desktop
gnupg-keys.desktop
internet-archive.desktop
parabola-packages.desktop
parabola-wiki.desktop
searx.desktop
yacy.desktop)
sha256sums=('96be2b732faf97a484edc5238049ad22f0f233b9e404468f4da40c5ec839e0d3'
'SKIP'
'1b0e4575282769d64f334ea2c4a9ba17986bdc9bad9813272d350a937668467e')
sha256sums+=('31910ab7393e67609f15e04a57f6406f63e6dae58b01bce0787741bc5958f292'
'40466a9dad7075f2525e9e024720da7d7b49a22892b6fca8b81cc0e6408d2f7d'
'57ded4375e1ddfe747bc55e3c52f4f39d1688f583c6af77da3479f544d262b71'
'5e57f0978b3429dfd2e97f215ab58394dd4c19c5b7e1b6bea9733eae92253e1a'
'7960cfc6b5a4030898cdd9d4699732fd7c1995983a0762ed1121aa2589beedc3'
'45af1a8588246c64c2e306237ef605406c5289c2ff53b5f459315c40c8e5099b'
'0264268855ac59872fe6bde4ce5c7d5f4a9b4d6936f3c2f870fc9a34de323c54'
'0a494a6bd652533b2ac1ea6a139e8b7295da29f840e5d0d7b2aa7e18886887ef')
_sha256sum_armv7h='96be2b732faf97a484edc5238049ad22f0f233b9e404468f4da40c5ec839e0d3'
_sha256sum_i686='faa5a519e0cccb7197a4025f4b267a7683b49ad9d03e730a57969f33072f51c1'
[[ "${CARCH}" != 'x86_64' ]] && eval "sha256sums[0]=\$_sha256sum_${CARCH}"
validpgpkeys=(53E6B47B45CEA3E0D5B7457758D0EE648A48B3BB) # David Faure <faure@kde.org>
prepare() {
cd "${srcdir}"/${pkgname}-${pkgver}/
# replace default search engines
local searchengines_dir=src/urifilters/ikws/searchproviders
find ${searchengines_dir}/ \
-name *.desktop \
-not -name duckduckgo.desktop \
-not -name fsd.desktop \
-not -name wikipedia.desktop \
-not -name wiktionary.desktop \
-exec rm -f {} \;
cp -v "${srcdir}"/*.desktop ${searchengines_dir}/
}
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
}
|