# Template file for 'zziplib'
pkgname=zziplib
version=0.13.67
revision=1
build_style=gnu-configure
hostmakedepends="pkg-config python"
makedepends="zlib-devel"
short_desc="Lightweight library to extract data from zip files"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
homepage="https://github.com/gdraheim/zziplib"
license="LGPL-2.1, MPL-1.1"
distfiles="https://github.com/gdraheim/zziplib/archive/v${version}.tar.gz"
checksum=1278178bdabac832da6bbf161033d890d335a2e38493c5af553ff5ce7b9b0220

pre_configure() {
	sed -i '/SUBDIRS/s/docs//' Makefile.in
}
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/*.a"
		vmove "usr/lib/*.so"
		vmove usr/share
	}
}
zziplib-utils_package() {
	short_desc+=" - utilities"
	pkg_install() {
		vmove usr/bin
	}
}
