diff options
Diffstat (limited to 'libre/midori/PKGBUILD')
-rw-r--r-- | libre/midori/PKGBUILD | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/libre/midori/PKGBUILD b/libre/midori/PKGBUILD new file mode 100644 index 000000000..e91a69716 --- /dev/null +++ b/libre/midori/PKGBUILD @@ -0,0 +1,56 @@ +# $Id: PKGBUILD 108939 2014-04-07 21:17:17Z 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> +# Maintainer: André Silva <emulatorman@parabola.nu> + +pkgname=midori +pkgver=0.5.8 +pkgrel=1.parabola1 +pkgdesc='Lightweight web browser (GTK2), without non-privacy search providers' +arch=('x86_64' 'i686') +url='http://www.midori-browser.org/' +license=('LGPL2.1') +install='midori.install' +replaces=(${pkgname}-libre) +conflicts=(${pkgname}-libre) +depends=('libzeitgeist' 'webkitgtk2' 'libnotify' 'libxss' 'hicolor-icon-theme' 'desktop-file-utils' 'libunique') +makedepends=('bzr' 'python2' 'intltool' 'vala' 'librsvg' 'cmake') +optdepends=('aria2: download utility') +options=('!emptydirs') +source=("http://www.midori-browser.org/downloads/${pkgname}_${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 + make +} + +package() { + make -C build DESTDIR="$pkgdir" install +} + +# vim:set ts=2 sw=2 et: |