# Template file for 'foomatic-db-engine'
pkgname=foomatic-db-engine
version=4.0.13
revision=1
build_style=gnu-configure
configure_args="--sbindir=/usr/bin --libdir=/usr/lib PERL_INSTALLDIRS=vendor"
hostmakedepends="wget perl foomatic-db cups-filters ghostscript cups libxml2-devel"
makedepends="libxml2-devel cups-devel"
depends="${hostmakedepends/libxml2-devel/}"
short_desc="OpenPrinting printer support - programs"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
license="GPL-2"
homepage="https://www.openprinting.org/"
distfiles="https://www.openprinting.org/download/foomatic/$pkgname-$version.tar.gz"
checksum=b5c89027aa26967d2e6db62e2af7db0c4039d2480d4fbf2476a6ddcf609a5faf

post_configure() {
	# Compiling and linking in one step requires $(LDFLAGS)
	sed -i Makefile -e's;$(CC) $(CFLAGS);& $(LDFLAGS);'
}
