# Template file for 'qpdf'
pkgname=qpdf
version=3.0.2
revision=2
build_style=gnu-configure
configure_args="--disable-static"
hostmakedepends="perl"
makedepends="pcre-devel"
short_desc="A Content-Preserving PDF Transformation System"
maintainer="Juan RP <xtraeme@gmail.com>"
license="Artistic-2.0"
homepage="http://qpdf.sourceforget.net"
distfiles="${SOURCEFORGE_SITE}/qpdf/qpdf-${version}.tar.gz"
checksum=b0c284945a49c46a0da6f54b06ff25237491ccc0c8bb062ae57d30aee80e165e
long_desc="
 QPDF is a command-line program that does structural, content-preserving
 transformations on PDF files. It could have been called something like
 pdf-to-pdf. It also provides many useful capabilities to developers of
 PDF-producing software or for people who just want to look at the innards
 of a PDF file to learn more about how they work."

libqpdf_package() {
	short_desc+=" - shared library"
	pkg_install() {
		vmove "usr/lib/*.so*"
	}
}

libqpdf-devel_package() {
	depends="libqpdf>=${version}"
	short_desc+=" - development files"
	pkg_install() {
		vmove usr/include
		vmove usr/lib/pkgconfig
	}
}