# Template file for 'uzbl'
pkgname=uzbl
version=0.9.1
revision=3
pycompile_module="uzbl"
hostmakedepends="pkg-config python3-setuptools"
makedepends="libsoup-devel webkitgtk-devel glib-devel"
depends="python3-setuptools python3-six"
short_desc="Web interface tools which adhere to the unix philosophy"
maintainer="Orphaned <orphan@voidlinux.eu>"
license="GPL-3"
homepage="http://www.uzbl.org/"
distfiles="https://github.com/uzbl/uzbl/archive/v${version}.tar.gz"
checksum=5778216914b8f45bc92fe72c9e51dad38423314bbc4a8182e305c24a9b5d86ba

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
}

uzbl-tabbed_package() {
	replaces="uzbl<0.9.1_2"
	short_desc="Tabbed interface to Uzbl"
	depends="uzbl-${version}_${revision} pygtk"
	pkg_install() {
		vmove usr/bin/uzbl-tabbed
		vmove usr/share/applications/uzbl-tabbed.desktop
	}
}
