libzip: adopted port

This commit is contained in:
Tim Biermann 2021-01-28 23:54:38 +00:00
parent cd7c0dbd30
commit c98bf02c69
Signed by: tb
GPG Key ID: 42F8B4E30B673606
2 changed files with 15 additions and 13 deletions

View File

@ -1,5 +1,5 @@
untrusted comment: verify with /etc/ports/opt.pub
RWSE3ohX2g5d/a/3qw6+Yw6NAWeGUxQNMeU7CHljFCvdJYdMsUeq8QtKNQViPfGeRiuNkWU3y8S103W1bVB7cYpfNRCIBwFjAQQ=
SHA256 (Pkgfile) = 12984da3f29ddd1e1f1d3c319c4749ae896c364dad1aec71206a59c1be24fce7
RWSE3ohX2g5d/aAwnJ7OeelJvaRfuGtzMquiZsLJo18sfrlp4U3n53Mi1ERvfVTACYCObv/l8TR7LOIemJL+MoAkEJUThTok2QM=
SHA256 (Pkgfile) = 6d84e148effaa85c8fcb5c8168208562c780e9aa7a6d973408fd97f6e61e92c1
SHA256 (.footprint) = 86fea37bfabf24b2837b7206edf0ec3d1727c738d1af172e5fc155c66781d5c7
SHA256 (libzip-1.7.3.tar.xz) = a60473ffdb7b4260c08bfa19c2ccea0438edac11193c3afbbb1f17fbcf6c6132

View File

@ -1,7 +1,7 @@
# Description: Library to handle zip files
# URL: https://libzip.org
# Maintainer: Alan Mizrahi, alan at mizrahi dot com dot ve
# Depends on: cmake xz zlib bzip2 openssl
# URL: https://libzip.org
# Maintainer: Tim Biermann, tbier at poste dot de
# Depends on: bzip2 cmake openssl xz zlib
name=libzip
version=1.7.3
@ -9,12 +9,14 @@ release=1
source=(https://libzip.org/download/$name-$version.tar.xz)
build() {
cmake -S $name-$version -B build \
-D CMAKE_BUILD_TYPE=Release \
-D CMAKE_C_FLAGS_RELEASE="$CFLAGS" \
-D CMAKE_INSTALL_PREFIX=/usr \
-D CMAKE_INSTALL_LIBDIR=/usr/lib \
-D ENABLE_GNUTLS=OFF
cmake --build build
DESTDIR=$PKG cmake --install build
[[ -e /usr/bin/ninja ]] && PKGMK_LIBZIP+=' -G Ninja'
cmake -S $name-$version -B build $PKGMK_LIBZIP \
-D CMAKE_BUILD_TYPE=Release \
-D CMAKE_C_FLAGS_RELEASE="$CFLAGS" \
-D CMAKE_INSTALL_PREFIX=/usr \
-D CMAKE_INSTALL_LIBDIR=lib \
-D ENABLE_GNUTLS=OFF
cmake --build build
DESTDIR=$PKG cmake --install build
}