summaryrefslogtreecommitdiff
path: root/libre/midori-libre-gtk3
diff options
context:
space:
mode:
authorAndré Fabian Silva Delgado <emulatorman@parabola.nu>2014-01-29 00:54:19 -0200
committerAndré Fabian Silva Delgado <emulatorman@parabola.nu>2014-01-29 00:54:19 -0200
commitc4f402a50ec2af80e2c0ac5cca43058b21f6ec92 (patch)
tree821b47c505d803de0cb2f38b5dcc8ba18e88f783 /libre/midori-libre-gtk3
parent2d1e25e0e40a913bfe8e02457f5879d82254c624 (diff)
downloadabslibre-c4f402a50ec2af80e2c0ac5cca43058b21f6ec92.tar.gz
abslibre-c4f402a50ec2af80e2c0ac5cca43058b21f6ec92.tar.bz2
abslibre-c4f402a50ec2af80e2c0ac5cca43058b21f6ec92.zip
rename midori-gtk3-libre to midori-libre-gtk3
Diffstat (limited to 'libre/midori-libre-gtk3')
-rw-r--r--libre/midori-libre-gtk3/PKGBUILD66
-rw-r--r--libre/midori-libre-gtk3/midori.install14
2 files changed, 80 insertions, 0 deletions
diff --git a/libre/midori-libre-gtk3/PKGBUILD b/libre/midori-libre-gtk3/PKGBUILD
new file mode 100644
index 000000000..e51c10605
--- /dev/null
+++ b/libre/midori-libre-gtk3/PKGBUILD
@@ -0,0 +1,66 @@
+# $Id: PKGBUILD 104163 2014-01-16 14:14:27Z arodseth $
+# Maintainer: Alexander Rødseth <rodseth@gmail.com>
+# Contributor: Bartłomiej Piotrowski <nospam@bpiotrowski.pl>
+# Contributor: Andreas Radke <andyrtr@archlinux.org>
+# Contributor: rabyte <rabyte.at.gmail.dot.com>
+# Contributor: Johannes Krampf <wuischke.at.amule.dot.org>
+# Contributor: Bartłomiej Piotrowski <barthalion@gmail.com>
+# Maintainer (Parabola): André Silva <emulatorman@parabola.nu>
+
+_pkgname=midori-gtk3
+pkgname=midori-libre-gtk3
+pkgver=0.5.7
+pkgrel=1.1
+pkgdesc='Lightweight web browser (GTK3), without non-privacy search providers'
+arch=('x86_64' 'i686' 'mips64el')
+url='http://www.midori-browser.org/'
+license=('LGPL2.1')
+install='midori.install'
+replaces=("$_pkgname-libre" "$_pkgname")
+conflicts=('midori' "$_pkgname-libre" "$_pkgname")
+provides=('midori' "$_pkgname-libre" "$_pkgname=$pkgver")
+depends=('libzeitgeist' 'webkitgtk3' 'libnotify' 'libxss' 'hicolor-icon-theme' 'desktop-file-utils' 'libunique3' 'gcr')
+makedepends=('pkg-config' 'bzr' 'python2' 'libxml2' 'gtk3' 'intltool' 'python2-docutils' 'libsoup' 'vala' 'librsvg' 'cmake')
+optdepends=('gst-plugins-base: HTML5 OGG videos support'
+ 'gst-plugins-good: HTML5 H264 and WebM videos support'
+ 'gst-libav: HTML5 H264 videos support'
+ 'aria2: download utility')
+options=('!emptydirs')
+source=("http://www.midori-browser.org/downloads/${_pkgname/-gtk3}_${pkgver}_all_.tar.bz2")
+sha256sums=('2875bb2aa8a8a0cce342178f04700d4ebccd13bf1b2ad4cb3ba9fec7e2bd0b4d')
+
+prepare() {
+ cd "${_pkgname/-gtk3}-$pkgver"
+
+ # remove non-privacy search providers
+ 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/-gtk3}-$pkgver"
+
+ mkdir -p build
+ cd build
+ cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_INSTALL_LIBDIR=lib -DUSE_GTK3=1
+ make
+}
+
+package() {
+ make -C "${_pkgname/-gtk3}-$pkgver/build" DESTDIR="$pkgdir" install
+}
+
+# vim:set ts=2 sw=2 et:
diff --git a/libre/midori-libre-gtk3/midori.install b/libre/midori-libre-gtk3/midori.install
new file mode 100644
index 000000000..e6af79c5f
--- /dev/null
+++ b/libre/midori-libre-gtk3/midori.install
@@ -0,0 +1,14 @@
+post_install() {
+ update-desktop-database -q
+ gtk-update-icon-cache -f -q -t usr/share/icons/hicolor
+}
+
+post_upgrade() {
+ post_install $1
+}
+
+post_remove() {
+ post_install $1
+}
+
+# vim:set ts=2 sw=2 et: