diff options
author | André Fabian Silva Delgado <emulatorman@parabola.nu> | 2014-09-04 23:44:28 -0300 |
---|---|---|
committer | André Fabian Silva Delgado <emulatorman@parabola.nu> | 2014-09-04 23:44:28 -0300 |
commit | 115eec400e26fb01257183953bfccf0afda45dac (patch) | |
tree | d5e169fd702dea2729e1c1c4425c71603f0b6776 /libre/midori-gtk3 | |
parent | 4edfb3ebe56dc0fe99db55597a3d0aab0a3e7f72 (diff) |
midori{,-gtk3}: remove libre suffix and add complex pkgrel
Diffstat (limited to 'libre/midori-gtk3')
-rw-r--r-- | libre/midori-gtk3/PKGBUILD | 62 | ||||
-rw-r--r-- | libre/midori-gtk3/midori.install | 14 |
2 files changed, 76 insertions, 0 deletions
diff --git a/libre/midori-gtk3/PKGBUILD b/libre/midori-gtk3/PKGBUILD new file mode 100644 index 000000000..e4bac6b96 --- /dev/null +++ b/libre/midori-gtk3/PKGBUILD @@ -0,0 +1,62 @@ +# $Id: PKGBUILD 108941 2014-04-07 21:25:27Z arodseth $ +# Maintainer (Arch): Alexander Rødseth <rodseth@gmail.com> +# Contributor (Arch): Bartłomiej Piotrowski <nospam@bpiotrowski.pl> +# 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 <barthalion@gmail.com> +# Maintainer: André Silva <emulatorman@parabola.nu> + +pkgname=midori-gtk3 +pkgver=0.5.8 +pkgrel=1.parabola1 +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=('midori-gtk3-libre' 'midori-libre-gtk3') +conflicts=('midori' 'midori-gtk3-libre' 'midori-libre-gtk3') +provides=('midori') +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') +# options=('!emptydirs' '!strip') # useful for debbuging see: https://labs.parabola.nu/issues/515 +source=("http://www.midori-browser.org/downloads/${pkgname/-gtk3}_${pkgver}_all_.tar.bz2") +sha256sums=('af19135fd4c4b04345df4d3592e7939c20f9b40eaca24550e6cb619751aa9381') + +prepare() { + # 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() { + mkdir -p build + cd build + cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_INSTALL_LIBDIR=lib -DUSE_GTK3=1 + make +} + +package() { + make -C build DESTDIR="$pkgdir" install +} + +# vim:set ts=2 sw=2 et: diff --git a/libre/midori-gtk3/midori.install b/libre/midori-gtk3/midori.install new file mode 100644 index 000000000..e6af79c5f --- /dev/null +++ b/libre/midori-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: |