From 7868cfb342a8c882f082a14702bf67f3b4a485f8 Mon Sep 17 00:00:00 2001 From: Alessio Sergi Date: Fri, 30 Jun 2017 20:11:48 +0200 Subject: [PATCH] midori: fix build with recent vala versions (via Arch) --- srcpkgs/midori/template | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/srcpkgs/midori/template b/srcpkgs/midori/template index 8c28b5668d3..e015904d7ea 100644 --- a/srcpkgs/midori/template +++ b/srcpkgs/midori/template @@ -21,3 +21,11 @@ homepage="http://www.midori-browser.org/" license="GPL-2" distfiles="http://www.midori-browser.org/downloads/midori_${version}_all_.tar.bz2" checksum=96191a96be71144ae848a409fae5a1d6d52a00e583f33122081f47ead9c49c3d + +pre_build() { + 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 +}