# Template file for 'uzbl'
pkgname=uzbl
version=0.9.0
revision=1
hostmakedepends="pkg-config python3.4-setuptools"
makedepends="libsoup-devel webkitgtk-devel glib-devel"
depends="python3.4-six"
short_desc="Web interface tools which adhere to the unix philosophy"
maintainer="Michael Gehring <mg@ebfe.org>"
license="GPL-3"
homepage="http://www.uzbl.org/"
distfiles="https://github.com/uzbl/uzbl/archive/v${version}.tar.gz"
checksum=931cf0bd91ebf140ddb0659d8ee547826bfa5d8235b618552eb5b951cc865347

post_extract() {
	sed -i "s/tarball_check=''/tarball_check='notempty'/" misc/hash.sh
}

do_build() {
	make PREFIX=/usr ${makejobs}
}

do_install() {
	make PREFIX=/usr DESTDIR=${DESTDIR} install
}

post_install() {
	sed -i "s!/etc/ssl/certs/ca-bundle.crt!/etc/ssl/certs/ca-certificates.crt!" ${DESTDIR}/usr/share/uzbl/examples/config/config
}
