void-packages/srcpkgs/jbigkit/template
2021-05-17 00:45:53 -03:00

42 lines
1.1 KiB
Bash

# Template file for 'jbigkit'
pkgname=jbigkit
version=2.2
revision=2
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-2.0-only"
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
}
}