aboutsummaryrefslogtreecommitdiffstats
path: root/main/midori/APKBUILD
blob: 5cb98be108794e55e970b2c7754f1c6017d8639a (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.10
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 paxmark python vala gcr-dev"
subpackages="$pkgname-lang"
install=""
source="http://www.midori-browser.org/downloads/midori_${pkgver}_all_.tar.bz2
	execinfo-detect.patch
	"

_builddir="$srcdir"/
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
	paxmark -mp "$pkgdir"/usr/bin/midori || return 1
}

md5sums="2f250a5015923b6eeca606629e7bf042  midori_0.5.10_all_.tar.bz2
38acb831d862fa8d9aaa9097b4180840  execinfo-detect.patch"
sha256sums="702344f68d7f034866a46398e35b3c16a5a5f3e431a5d916ea5efc3eaaa3e46f  midori_0.5.10_all_.tar.bz2
cc8c5f1402aa7785d67df96f05c72dcbe74c67624834f427e09ceb44ab6d73c7  execinfo-detect.patch"
sha512sums="9e615581b2029e2167d13bab3a580cf89b87da4979bb27982f2002b4ddb97e44d27ea910ee60df6479bd0dfa8cbef75217fa1956eb34b13475c99ab25b83f245  midori_0.5.10_all_.tar.bz2
20cd27a801bf1dcf1c9e4e4642a4a342f5a70e0f97843b155588c80f1e4976dd6f8fd95d5e2d6c416de3f7181d0719e3e04d2d09b6a8d105df4510ef0090bc45  execinfo-detect.patch"