summaryrefslogtreecommitdiff
path: root/libre/midori-libre-gtk3/PKGBUILD
blob: 66c8f4be040aa586be78c7c708f7abf3c83512bf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# $Id: PKGBUILD 108941 2014-04-07 21:25: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.8
pkgrel=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" "$_pkgname-libre")
conflicts=('midori-libre' "$_pkgname"  "$_pkgname-libre")
provides=('midori-libre' "$_pkgname=$pkgver" "$_pkgname-libre")
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=('af19135fd4c4b04345df4d3592e7939c20f9b40eaca24550e6cb619751aa9381')

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() {
  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: