void-packages/srcpkgs/zziplib/template
Đoàn Trần Công Danh 9978e00086 srcpkgs: remove patch_args=-Np1 en-mass
git grep -l '^patch_args=.*p1' 'srcpkgs/*/template'  |
	xargs -r sed -i '/^patch_args=/d'
2021-06-20 13:17:29 +07:00

40 lines
1 KiB
Bash

# Template file for 'zziplib'
pkgname=zziplib
version=0.13.72
revision=1
build_style=cmake
hostmakedepends="pkg-config python3 tar zip"
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"
changelog="https://raw.githubusercontent.com/gdraheim/zziplib/master/ChangeLog"
distfiles="https://github.com/gdraheim/zziplib/archive/v${version}.tar.gz"
checksum=93ef44bf1f1ea24fc66080426a469df82fa631d13ca3b2e4abaeab89538518dc
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
}
}