aboutsummaryrefslogtreecommitdiffstats
path: root/main/midori/APKBUILD
blob: 514ef2fe91fa4fd3a1922e6414e1453b6fc1d28b (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=midori
pkgver=0.5.9
pkgrel=0
pkgdesc="A lightweight web browser based on Gtk WebKit"
url="http://www.midori-browser.org"
arch="all"
license="LGPL2+"
depends=""
depends_dev="libnotify-dev libunique-dev webkitgtk-dev"
makedepends=" $depends_dev cmake librsvg-dev paxctl python vala"
subpackages="$pkgname-lang"
install=""
source="http://www.midori-browser.org/downloads/midori_${pkgver}_all_.tar.bz2
	execinfo-detect.patch
	"

_builddir="$srcdir"/$pkgname-$pkgver
prepare() {
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
	cmake \
		-DCMAKE_BUILD_TYPE=Release \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=/usr/lib \
		-DUSE_ZEITGEIST=OFF \
		. || return 1
	make
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
	# PAX does not like the JIT
	paxctl -c -m -p "$pkgdir"/usr/bin/midori
}

md5sums="a0af659e0f1d6edb2c97aefdc8c0f097  midori_0.5.9_all_.tar.bz2
38acb831d862fa8d9aaa9097b4180840  execinfo-detect.patch"
sha256sums="b1a5309d926ea4e394f4a39552023b0427cf23053793d325e3daefceed282ec0  midori_0.5.9_all_.tar.bz2
cc8c5f1402aa7785d67df96f05c72dcbe74c67624834f427e09ceb44ab6d73c7  execinfo-detect.patch"
sha512sums="5f1f42347f85485fd07a12d5dd1c42ab341895be1d5e897ef829bf81357ceae988f6679ef8432688f01168d7ae97ead541d0d732a14b7ac36e033bf3b271b7c2  midori_0.5.9_all_.tar.bz2
20cd27a801bf1dcf1c9e4e4642a4a342f5a70e0f97843b155588c80f1e4976dd6f8fd95d5e2d6c416de3f7181d0719e3e04d2d09b6a8d105df4510ef0090bc45  execinfo-detect.patch"