blob: 2d686cbe3937480fb1e60b9107ff028c90a19708 (
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
69
70
71
72
73
74
75
76
77
|
# $Id: PKGBUILD 209048 2017-01-25 14:27:54Z arodseth $
# Maintainer (Arch): Alexander F Rødseth <xyproto@archlinux.org>
# 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>
# Contributor: André Silva <emulatorman@riseup.net>
pkgname=midori
pkgver=0.5.11
pkgrel=6.parabola1
pkgdesc='Lightweight web browser (GTK3), without non-privacy search engines'
arch=('x86_64' 'i686' 'armv7h')
url='http://www.midori-browser.org/'
license=('LGPL2.1')
install='midori.install'
conflicts=('midori-gtk2')
provides=('midori')
replaces=('midori-gtk3')
depends=('webkit2gtk' 'libxss' 'gcr' 'zeitgeist')
makedepends=('bzr' 'intltool' 'vala' 'cmake' 'ninja')
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}_${pkgver}_all_.tar.bz2")
sha256sums=('96191a96be71144ae848a409fae5a1d6d52a00e583f33122081f47ead9c49c3d')
prepare() {
cd "$pkgname-$pkgver"
# Remove non-privacy search engines
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
# The latest release of vala is a bit stricter than the previous one
sed 's/protected Tally/public Tally/g' -i midori/midori-notebook.vala
sed 's/%d other files/%u other files/g' -i extensions/transfers.vala
for f in transfers adblock/widgets apps history-list notes; do
sed 's/.remove (iter/.remove (ref iter/g' -i "extensions/$f.vala"
done
}
build() {
cd "$pkgname-$pkgver"
mkdir -p build
cd build
cmake .. \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib \
-DHALF_BRO_INCOM_WEBKIT2=ON \
-DCMAKE_C_FLAGS="$CFLAGS -w" \
-G Ninja
ninja
}
package() {
DESTDIR="$pkgdir" ninja -C "$pkgname-$pkgver/build" install
}
# getver: -u 2 midori-browser.org/download/source
# vim:set ts=2 sw=2 et:
|