void-packages/srcpkgs/jbigkit/template
Jürgen Buchmüller fe45a20428 jbigkit: update to 2.2
Upstream automake was fixed; also supports 'make check' now.
2020-04-11 20:11:55 +02:00

42 lines
1 KiB
Bash

# Template file for 'jbigkit'
pkgname=jbigkit
version=2.2
revision=1
wrksrc="${pkgname}-shared-${version}"
build_style=gnu-configure
hostmakedepends="automake libtool pkg-config"
checkdepends="check-devel"
short_desc="Data compression library/utilities for bi-level high-resolution images"
maintainer="Andrea Brancaleoni <abc@pompel.me>"
license="GPL-3"
homepage="http://www.cl.cam.ac.uk/~mgk25/jbigkit"
distfiles="https://github.com/void-linux/jbigkit-shared/archive/v${version}.tar.gz"
checksum=5cccbfb3bd7daf224a244ce0578dbcf706e4f39962426ceede873262b29b9931
pre_configure() {
./bootstrap.sh
}
post_install() {
vinstall jbigkit.pc 644 usr/lib/pkgconfig
vinstall jbigkit85.pc 644 usr/lib/pkgconfig
rm -vf ${DESTDIR}/usr/lib/*.la
}
jbigkit-libs_package() {
short_desc+=" - shared libraries"
pkg_install() {
vmove usr/lib/*.so.*
}
}
jbigkit-devel_package() {
short_desc+=" - development files"
depends="${sourcepkg}-libs>=${version}_${revision}"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove usr/lib/*.so
vmove usr/lib/*.a
}
}