aboutsummaryrefslogtreecommitdiffstats
path: root/community/midori/APKBUILD
blob: 9eb29ed80dcbcab70f1c12663692ec4c5499c464 (plain) (blame)
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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=midori
pkgver=6.0
pkgrel=0
pkgdesc="A lightweight web browser based on Gtk WebKit"
url="http://www.midori-browser.org"
arch="all"
license="LGPL-2.0-or-later"
depends=
makedepends="cmake librsvg-dev paxmark python2 vala gtk+3.0-dev gcr-dev
	libunique-dev webkit2gtk-dev libpeas-dev"
subpackages="$pkgname-lang $pkgname-doc"
install=""
options="!check" # unable to check
source="https://github.com/midori-browser/core/releases/download/v${pkgver%.0}/midori-v$pkgver.tar.gz
	"
builddir="${srcdir}/${pkgname}-${pkgver}"

unpack() {
	mkdir -p "$builddir"
	tar -zxf "${srcdir}/midori-v$pkgver.tar.gz" -C "$builddir"
}

build() {
	mkdir "$builddir"/build
	cd "$builddir"/build
	cmake \
		-DCMAKE_BUILD_TYPE=Release \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=/usr/lib \
		-DUSE_GTK3=ON \
		-DHALF_BRO_INCOM_WEBKIT2=ON \
		-DUSE_ZEITGEIST=OFF \
		..
	make
}

package() {
	cd "$builddir"/build
	make DESTDIR="$pkgdir" install
}

sha512sums="2b3e4808b1297a3ef8436b45ac38782e070658a0ecc62bcf8d0b2cf49f256cdad799ccc5d28df11ff595c042e8474fa2e87065d9a89cdb5a936237c44fdfd9e7  midori-v6.0.tar.gz"