void-packages/srcpkgs/libzip/template
2021-03-05 13:12:38 +01:00

34 lines
904 B
Bash

# Template file for 'libzip'
pkgname=libzip
version=1.7.3
revision=2
build_style=cmake
hostmakedepends="perl groff pkg-config"
makedepends="bzip2-devel openssl-devel zlib-devel liblzma-devel"
short_desc="C library for reading, creating, and modifying zip archives"
maintainer="Orphaned <orphan@voidlinux.org>"
license="BSD-3-Clause"
homepage="https://libzip.org/"
distfiles="https://libzip.org/download/libzip-${version}.tar.gz"
checksum=0e2276c550c5a310d4ebf3a2c3dfc43fb3b4602a072ff625842ad4f3238cb9cc
post_patch() {
vsed -i lib/zip_crypto_openssl.c \
-e '/^#include <openssl\/rand\.h>/a #include <limits.h>'
}
post_install() {
vlicense LICENSE
}
libzip-devel_package() {
depends="${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/share/man/man3
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.so"
vmove usr/lib/cmake
}
}