39 lines
993 B
Bash
39 lines
993 B
Bash
# Template file for 'zziplib'
|
|
pkgname=zziplib
|
|
version=0.13.69
|
|
revision=2
|
|
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.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=846246d7cdeee405d8d21e2922c6e97f55f24ecbe3b6dcf5778073a88f120544
|
|
|
|
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
|
|
}
|
|
}
|