# Template file for 'midori' pkgname=midori version=0.5.11 revision=2 lib32disabled=yes build_options="zeitgeist" build_style=cmake configure_args="-DUSE_GTK3=1 -DHALF_BRO_INCOM_WEBKIT2=ON $(vopt_if zeitgeist '-DUSE_ZEITGEIST=1' '-DUSE_ZEITGEIST=0')" hostmakedepends="pkg-config intltool librsvg-utils glib-devel vala-devel libzeitgeist-devel" makedepends="gtk+3-devel libxml2-devel vala-devel $(vopt_if zeitgeist libzeitgeist-devel) dbus-glib-devel librsvg-devel libnotify-devel libsoup-gnome-devel webkit2gtk-devel sqlite-devel libunique-devel libXScrnSaver-devel gcr-devel" depends="hicolor-icon-theme desktop-file-utils" conf_files=" /etc/xdg/midori/search /etc/xdg/midori/extensions/adblock/config" short_desc="Lightweight web browser using WebKit GTK+" maintainer="Juan RP " 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 }