void-packages/srcpkgs/jbigkit/template

38 lines
947 B
Bash
Raw Normal View History

2015-04-19 18:24:35 +00:00
# Template file for 'jbigkit'
pkgname=jbigkit
version=2.1
revision=1
build_style=gnu-makefile
short_desc="Data compression library/utilities for bi-level high-resolution images"
maintainer="Andrea Brancaleoni <miwaxe@gmail.com>"
license="GPL-3"
homepage="http://www.cl.cam.ac.uk/~mgk25/jbigkit"
distfiles="http://www.cl.cam.ac.uk/~mgk25/download/jbigkit-$version.tar.gz"
checksum=de7106b6bfaf495d6865c7dd7ac6ca1381bd12e0d81405ea81e7f2167263d932
do_build() {
2015-04-24 20:14:58 +00:00
make CC=$CC CFLAGS="${CFLAGS} -I${wrksrc}/libjbig ${LDFLAGS}" ${makejobs}
2015-04-19 18:24:35 +00:00
}
do_install() {
# Install pbm tools
for tool in $(find pbmtools/ -executable -type f); do
vbin $tool
done
# Install man pages
for manp in pbmtools/*.{1,5}; do
vman $manp
done
}
jbigkit-devel_package() {
short_desc+=" - development files"
pkg_install() {
for lib in libjbig/*.a; do
vinstall $lib 644 usr/lib
done
for header in libjbig/*.h; do
vinstall $header 644 usr/include
done
}
}