# Template file for 'poppler-data'
pkgname=poppler-data
version=0.4.5
revision=1
homepage="http://poppler.freedesktop.org/"
distfiles="http://poppler.freedesktop.org/$pkgname-$version.tar.gz"
short_desc="Encoding data for the poppler PDF rendering library"
maintainer="Juan RP <xtraeme@gmail.com>"
license="MIT, GPL-2, Adobe (BSD alike)"
checksum=3190bc457bafe4b158f79a08e8a3f1824031ec12acefc359e68e0f04da0f70fd
long_desc="
 This package consists of encoding files for use with poppler.  The
 encoding files are optional and poppler will automatically read them
 if they are present.  When installed, the encoding files enables
 poppler to correctly render CJK and Cyrrilic properly.  While poppler
 is licensed under the GPL, these encoding files have different license,
 and thus distributed separately."

do_install() {
	make prefix=/usr DESTDIR=$DESTDIR install

	vmkdir usr/share/licenses/$pkgname
	install -m644 COPYING COPYING.adobe $DESTDIR/usr/share/licenses/$pkgname
}

poppler-data_package() {
	noarch="yes"
	pkg_install() {
		vmove usr
	}
}