summaryrefslogtreecommitdiff
path: root/libre/midori/PKGBUILD
blob: ab72b2c626b16fc7d3a9299f4e30359b01f8b953 (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
# $Id: PKGBUILD 131924 2015-04-22 09:36:13Z 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
pkgver=0.5.10
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' 'gcr')
makedepends=('bzr' 'python2' 'intltool' 'vala' 'librsvg' 'cmake' 'ninja' 'gcr')
optdepends=('aria2: download utility')
options=('!emptydirs')
source=("http://www.midori-browser.org/downloads/${pkgname}_${pkgver}_all_.tar.bz2")
sha256sums=('702344f68d7f034866a46398e35b3c16a5a5f3e431a5d916ea5efc3eaaa3e46f')

prepare() {
  #cd "$pkgname-$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-$pkgver"
  mkdir -p build
  cd build
  cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_INSTALL_LIBDIR=lib -G Ninja
  ninja
}

package() {
  #DESTDIR="$pkgdir" ninja -C "$pkgname-$pkgver/build" install
  DESTDIR="$pkgdir" ninja -C build install
}

# vim:set ts=2 sw=2 et: