void-packages/srcpkgs/minizip/template

35 lines
835 B
Bash

# Template file for 'minizip'
pkgname=minizip
version=1.2.13
revision=1
build_wrksrc="contrib/${pkgname}"
build_style=gnu-configure
hostmakedepends="automake libtool"
makedepends="zlib-devel"
short_desc="Zip file manipulation library"
maintainer="ojab <ojab@ojab.ru>"
license="Zlib"
homepage="https://www.winimage.com/zLibDll/minizip.html"
distfiles="https://www.zlib.net/zlib-${version}.tar.gz"
checksum=b3a24de97a8fdbc835b9833169501030b8977031bcb54b3b3ac13740f846ab30
pre_configure() {
autoreconf -i
}
post_install() {
# https://github.com/madler/zlib/pull/229
rm ${DESTDIR}/usr/include/minizip/crypt.h
}
minizip-devel_package() {
short_desc+=" - development files"
depends="${sourcepkg}-${version}_${revision}"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.a"
vmove "usr/lib/*.so"
}
}