summaryrefslogtreecommitdiff
path: root/libre/kio/PKGBUILD
diff options
context:
space:
mode:
authorAndré Fabian Silva Delgado <emulatorman@parabola.nu>2016-09-01 00:12:29 -0300
committerAndré Fabian Silva Delgado <emulatorman@parabola.nu>2016-09-01 00:12:29 -0300
commit4260a2678d8fd51944519481a55471efe3b65e56 (patch)
treefd763fb47611e4cbb87bee6734c47af5e23d7b12 /libre/kio/PKGBUILD
parent33c6a7fddeb0d59503688edf14a05f05c9ade1e6 (diff)
downloadabslibre-4260a2678d8fd51944519481a55471efe3b65e56.tar.gz
abslibre-4260a2678d8fd51944519481a55471efe3b65e56.tar.bz2
abslibre-4260a2678d8fd51944519481a55471efe3b65e56.zip
kio: add new package to [libre] - Freedom issue #1066 -> https://labs.parabola.nu/issues/1066
Diffstat (limited to 'libre/kio/PKGBUILD')
-rw-r--r--libre/kio/PKGBUILD53
1 files changed, 53 insertions, 0 deletions
diff --git a/libre/kio/PKGBUILD b/libre/kio/PKGBUILD
new file mode 100644
index 000000000..09d1302aa
--- /dev/null
+++ b/libre/kio/PKGBUILD
@@ -0,0 +1,53 @@
+# $Id: PKGBUILD 273723 2016-08-14 15:49:45Z felixonmars $
+# Maintainer (Arch): Felix Yan <felixonmars@archlinux.org>
+# Contributor (Arch): Andrea Scarpino <andrea@archlinux.org>
+# Maintainer: André Silva <emulatorman@parabola.nu>
+
+pkgname=kio
+pkgver=5.25.0
+pkgrel=1.parabola1
+pkgdesc='Resource and network access abstraction, without non-privacy search engines'
+arch=('i686' 'x86_64')
+url='https://community.kde.org/Frameworks'
+license=('LGPL')
+depends=('solid' 'kjobwidgets' 'kbookmarks' 'libxslt' 'kwallet' 'desktop-file-utils' 'kinit')
+makedepends=('extra-cmake-modules' 'kdoctools' 'python')
+optdepends=('kio-extras: extra protocols support (sftp, fish and more)')
+groups=('kf5')
+source=("http://download.kde.org/stable/frameworks/${pkgver%.*}/${pkgname}-${pkgver}.tar.xz"
+ 'duckduckgo_html.desktop'
+ 'duckduckgo_lite.desktop')
+md5sums=('0077d90029c34f734fb661912f2213d1'
+ '59462f450ae72354ab3ca188710e2330'
+ '1ca9884d8dc89c5713a1f42033775bcd')
+
+prepare() {
+ mkdir -p build
+
+ cd ${pkgname}-${pkgver}
+
+ # Removing non-privacy search providers
+ rm -v src/urifilters/ikws/searchproviders/{7digital,acronym,amazon{,_mp3},amg,backports,baidu,bing,blip,cia,dbug,deb,duckduckgo{,_info,_shopping},facebook,ecosia,feedster,flickr,flickrcc,google,google_advanced,google_code,google_groups,google_images,google_lucky,google_maps,google_movie,google_news,google_shopping,imdb,jamendo,jeeves,magnatune,metacrawler,msdn,nl-telephone,nl-teletekst,python,rpmfind,tvtome,uspto,vimeo,voila,yahoo,yahoo_image,yahoo_local,yahoo_shopping,yahoo_video,youtube}.desktop
+
+ # Adding DuckDuckGo HTML
+ cp -v "${srcdir}"/duckduckgo_html.desktop src/urifilters/ikws/searchproviders
+
+ # Adding DuckDuckGo Lite
+ cp -v "${srcdir}"/duckduckgo_lite.desktop src/urifilters/ikws/searchproviders
+}
+
+build() {
+ cd build
+ cmake ../${pkgname}-${pkgver} \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DKDE_INSTALL_LIBDIR=lib \
+ -DKDE_INSTALL_LIBEXECDIR=lib \
+ -DBUILD_TESTING=OFF
+ make
+}
+
+package() {
+ cd build
+ make DESTDIR="${pkgdir}" install
+}