summaryrefslogtreecommitdiff
path: root/libre/midori-libre/PKGBUILD
blob: 0871de5d4f141bbc673f18da5cb612e2eb20ec3c (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
65
66
67
68
# $Id: PKGBUILD 101597 2013-11-28 20:54:40Z arodseth $
# Maintainer:  Alexander Rødseth <rodseth@gmail.com>
# Maintainer:  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
pkgname=midori-libre
pkgver=0.5.6
pkgrel=2
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
conflicts=$_pkgname
provides=$_pkgname=$pkgver
depends=('libzeitgeist' 'webkitgtk2' 'libnotify' 'libxss' 'hicolor-icon-theme' 'desktop-file-utils' 'libunique')
makedepends=('bzr' 'python2' 'intltool' 'vala' 'librsvg' 'cmake')
optdepends=('gstreamer0.10-base-plugins: HTML5 OGG videos support'
            'gstreamer0.10-bad-plugins: HTML5 WebM videos support'
            'gstreamer0.10-ffmpeg: HTML5 H264 videos support'
            'aria2: download utility')
options=('!emptydirs')
mksource=("http://www.midori-browser.org/downloads/${_pkgname}_${pkgver}_all_.tar.bz2")
source=("https://repo.parabolagnulinux.org/sources/${pkgname}_${pkgver}_all_.tar.bz2")
mksha256sums=('c5be1b5d9933776f09c5cab7945a073a820d65555e51fda9ff55fd063843f24a')
sha256sums=('463200bb67c35fc4fa7447689174676aba02aa6ec1cec476ca0e83b0d50f65d6')

mksource() {
  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
  make
}

package() {
  make -C "$_pkgname-$pkgver/build" DESTDIR="$pkgdir" install
}

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