aboutsummaryrefslogtreecommitdiffstats
path: root/community/midori/APKBUILD
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2017-05-05 19:31:42 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2017-05-05 19:32:46 +0000
commit147d2d76562eff6f7591a43061b3a970e5bcf74f (patch)
tree29b80e1cf1e7b87918d57f7dd33579fc85379bb4 /community/midori/APKBUILD
parent90f4bdf07d7f88751574bf0387d2d0b1f2c97bb3 (diff)
downloadaports-147d2d76562eff6f7591a43061b3a970e5bcf74f.tar.bz2
aports-147d2d76562eff6f7591a43061b3a970e5bcf74f.tar.xz
community/midori: fix build with newer vala
Diffstat (limited to 'community/midori/APKBUILD')
-rw-r--r--community/midori/APKBUILD29
1 files changed, 10 insertions, 19 deletions
diff --git a/community/midori/APKBUILD b/community/midori/APKBUILD
index 6128bc6100..63aa370677 100644
--- a/community/midori/APKBUILD
+++ b/community/midori/APKBUILD
@@ -1,7 +1,7 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=midori
pkgver=0.5.11
-pkgrel=0
+pkgrel=1
pkgdesc="A lightweight web browser based on Gtk WebKit"
url="http://www.midori-browser.org"
arch="x86 x86_64"
@@ -10,22 +10,14 @@ depends=
makedepends="cmake librsvg-dev paxmark python2 vala gtk+3.0-dev gcr-dev libunique-dev webkit2gtk-dev"
subpackages="$pkgname-lang"
install=""
-source="http://www.midori-browser.org/downloads/midori_${pkgver}_all_.tar.bz2"
+source="http://www.midori-browser.org/downloads/midori_${pkgver}_all_.tar.bz2
+ valac-0.35.patch"
-_srcdir="${srcdir}/$pkgname-${pkgver}"
-_builddir="${srcdir}/build"
-prepare() {
- cd "$_srcdir"
- for i in $source; do
- case $i in
- *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
- esac
- done
-}
+builddir="${srcdir}/$pkgname-${pkgver}"
build() {
- mkdir "$_builddir"
- cd "$_builddir"
+ mkdir "$builddir"/build
+ cd "$builddir"/build
cmake \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
@@ -33,17 +25,16 @@ build() {
-DUSE_GTK3=ON \
-DHALF_BRO_INCOM_WEBKIT2=ON \
-DUSE_ZEITGEIST=OFF \
- "$_srcdir" || return 1
+ .. || return 1
make
}
package() {
- cd "$_builddir"
+ cd "$builddir"/build
make DESTDIR="$pkgdir" install || return 1
# PAX does not like the JIT
paxmark -mp "$pkgdir"/usr/bin/midori || return 1
}
-md5sums="fcc03ef759fce4fe9f2446d9da4a065e midori_0.5.11_all_.tar.bz2"
-sha256sums="96191a96be71144ae848a409fae5a1d6d52a00e583f33122081f47ead9c49c3d midori_0.5.11_all_.tar.bz2"
-sha512sums="237310d1f0bf70796474b9ec5be6755927e66acd2b527d04db39696c5e2f7ea2d11f7deb51ba3f5c151a450ab71e642282a1386e34253aaea1d8602ce76ac87d midori_0.5.11_all_.tar.bz2"
+sha512sums="237310d1f0bf70796474b9ec5be6755927e66acd2b527d04db39696c5e2f7ea2d11f7deb51ba3f5c151a450ab71e642282a1386e34253aaea1d8602ce76ac87d midori_0.5.11_all_.tar.bz2
+2a788e543cfa2e72f223b356792b59ff64116c9ac9dc1273c2dab6a7fbaf5d31eaad6291359638c43f8fad05511f1c3934b681ca33dfc1e8e90c48f2f7cb277e valac-0.35.patch"