summaryrefslogtreecommitdiff
path: root/libre/midori-gtk2/PKGBUILD
diff options
context:
space:
mode:
authorAndré Fabian Silva Delgado <emulatorman@parabola.nu>2015-09-07 12:08:41 -0300
committerAndré Fabian Silva Delgado <emulatorman@parabola.nu>2015-09-22 16:15:01 -0300
commit922ca5502fbb24452c4daa2f29f0ce15efd2be54 (patch)
treea1510c3140fa4cfa107db02fb4586c10c7f4491a /libre/midori-gtk2/PKGBUILD
parenteded0251e944f0e581ddbb4e7ee700ad43fb55f7 (diff)
downloadabslibre-922ca5502fbb24452c4daa2f29f0ce15efd2be54.tar.gz
abslibre-922ca5502fbb24452c4daa2f29f0ce15efd2be54.tar.bz2
abslibre-922ca5502fbb24452c4daa2f29f0ce15efd2be54.zip
midori->midori-gtk2, midori-gtk3->midori
Diffstat (limited to 'libre/midori-gtk2/PKGBUILD')
-rw-r--r--libre/midori-gtk2/PKGBUILD62
1 files changed, 62 insertions, 0 deletions
diff --git a/libre/midori-gtk2/PKGBUILD b/libre/midori-gtk2/PKGBUILD
new file mode 100644
index 000000000..7a7559d4c
--- /dev/null
+++ b/libre/midori-gtk2/PKGBUILD
@@ -0,0 +1,62 @@
+# $Id: PKGBUILD 139371 2015-09-06 21:13:29Z arodseth $
+# Maintainer (Arch): Alexander Rødseth <rodseth@gmail.com>
+# Contributor (Arch): Andreas Radke <andyrtr@archlinux.org>
+# Contributor (Arch): rabyte <rabyte.at.gmail.dot.com>
+# Contributor (Arch): Johannes Krampf <wuischke.at.amule.dot.org>
+# Contributor (Arch): Bartłomiej Piotrowski <bpiotrowski@archlinux.org>
+# Contributor (Arch): Andrew Gregory <andrew.gregory.8@gmail.com>
+# Maintainer: André Silva <emulatorman@parabola.nu>
+
+pkgname=midori-gtk2
+pkgver=0.5.11
+pkgrel=1.parabola1
+pkgdesc='Lightweight web browser (GTK2), without non-privacy search engines'
+arch=('x86_64' 'i686')
+url='http://www.midori-browser.org/'
+license=('LGPL2.1')
+install='midori.install'
+conflicts=('midori')
+provides=('midori')
+depends=('webkitgtk2' 'libnotify' 'libxss' 'hicolor-icon-theme' 'desktop-file-utils' 'libunique' 'gcr' 'libzeitgeist' 'zeitgeist')
+makedepends=('bzr' 'python2' 'intltool' 'vala' 'librsvg' 'cmake' 'ninja' 'gcr' 'libzeitgeist' 'zeitgeist')
+optdepends=('aria2: download utility')
+options=('!emptydirs')
+# options=('!emptydirs' '!strip') # useful for debbuging see: https://labs.parabola.nu/issues/515
+source=("http://www.midori-browser.org/downloads/${pkgname/-gtk2}_${pkgver}_all_.tar.bz2")
+sha256sums=('96191a96be71144ae848a409fae5a1d6d52a00e583f33122081f47ead9c49c3d')
+
+prepare() {
+ cd "${pkgname/-gtk2}-$pkgver"
+ # remove non-privacy search engines
+ sed -i 's|Duck Duck Go|DuckDuckGo HTML|
+ s|duckduckgo[.]com|duckduckgo.com/html|
+ \|Yahoo|d
+ \|name=Yahoo|d
+ \|text=Yahoo Web Search|d
+ \|uri=http://search[.]yahoo[.]com/search?p=|d
+ \|token=y|d
+ \|Google|d
+ \|name=Google|d
+ \|text=Web Search|d
+ \|uri=http://www[.]google[.]com/search?q=%s|d
+ \|token=g|d
+ \|Localize text or URL|d
+ \|translate[.]google[.]com/?q=|d
+ ' config/search
+}
+
+build() {
+ cd "${pkgname/-gtk2}-$pkgver"
+
+ mkdir -p build
+ cd build
+ cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_INSTALL_LIBDIR=lib -G Ninja
+ ninja
+}
+
+package() {
+ DESTDIR="$pkgdir" ninja -C "${pkgname/-gtk2}-$pkgver/build" install
+}
+
+# getver: -u 2 midori-browser.org/download/source
+# vim:set ts=2 sw=2 et: