void-packages/srcpkgs/zziplib/template
2020-04-15 01:27:09 +02:00

40 lines
1,018 B
Bash

# Template file for 'zziplib'
pkgname=zziplib
version=0.13.70
revision=1
build_style=cmake
configure_args=" -DZZIPDOCS=OFF"
hostmakedepends="pkg-config python3 tar zip gzip"
makedepends="zlib-devel"
short_desc="Lightweight library to extract data from zip files"
maintainer="Orphaned <orphan@voidlinux.org>"
license="LGPL-2.1-or-later, MPL-1.1"
homepage="https://github.com/gdraheim/zziplib"
distfiles="https://github.com/gdraheim/zziplib/archive/v${version}.tar.gz"
checksum=a1457262d7a237dc50ce1f98ca57242bc714055ff81146f419ee53cdea1bf029
if [ "$CROSS_BUILD" ]; then
configure_args+=" -DZZIPTEST=OFF"
fi
post_install() {
sed -i "s|\(-specs=.*hardened-ld\)||g" -i ${DESTDIR}/usr/lib/pkgconfig/*.pc
}
zziplib-devel_package() {
depends="${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.so"
vmove usr/share
}
}
zziplib-utils_package() {
short_desc+=" - utilities"
pkg_install() {
vmove usr/bin
}
}