void-packages/srcpkgs/zziplib/template
maxice8 bbda5c4c24 zziplib: update to 0.13.68.
Closes: #11417 [via git-merge-pr]
2018-03-10 14:14:13 +01:00

38 lines
992 B
Bash

# Template file for 'zziplib'
pkgname=zziplib
version=0.13.68
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-or-later, MPL-1.1"
distfiles="https://github.com/gdraheim/zziplib/archive/v${version}.tar.gz"
checksum=9460919b46592a225217cff067b1c0eb86002b32c54b4898f9c21401aaa11032
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
}
}