# Template file for 'djvulibre'
pkgname=djvulibre
version=3.5.25.3
revision=1
wrksrc="${pkgname}-${version%.*}"
build_style=gnu-configure
hostmakedepends="pkg-config ImageMagick"
makedepends="tiff-devel"
short_desc="Utilities for the DjVu image format"
maintainer="Juan RP <xtraeme@gmail.com>"
license="GPL-2"
homepage="http://djvu.sourceforge.net/"
distfiles="${SOURCEFORGE_SITE}/djvu/$pkgname-$version.tar.gz"
checksum=898d7ed6dd2fa311a521baa95407a91b20a872d80c45e8245442d64f142cb1e0

libdjvulibre_package() {
	short_desc+=" - runtime libraries"
	pkg_install() {
		vmove "usr/lib/*.so.*"
	}
}

djvulibre-devel_package() {
	depends="tiff-devel libdjvulibre>=${version}_${revision}"
	short_desc+=" - development files"
	pkg_install() {
		vmove usr/include
		vmove usr/lib/pkgconfig
		vmove usr/lib/*.so
	}
}
