# Template file for 'zathura-pdf-poppler'
pkgname=zathura-pdf-poppler
version=0.2.6
revision=1
build_style=gnu-makefile
maintainer="Dominik Honnef <dominik@honnef.co>"
hostmakedepends="pkg-config"
makedepends="poppler-devel poppler-glib-devel zathura-devel"
conflicts="zathura-pdf-mupdf>=0"
license="zlib"
homepage="http://pwmt.org/projects/zathura-pdf-poppler/"
short_desc="PDF support for zathura (using poppler)"
distfiles="http://pwmt.org/projects/${pkgname}/download/${pkgname}-${version}.tar.gz"
checksum=d1eb0c7a4f647c141192a2d7bf66413b9c5f1842463947ab87a8a1edcf8e58d5

pre_build() {
	sed -i 's/^\(CFLAGS *+=\)/override \1/' config.mk
	sed -i 's/^\(LDFLAGS *+=\)/override \1/' config.mk
}

post_install() {
	vlicense LICENSE
}
