2020-02-15 13:46:56 +01:00
|
|
|
# Description: Library to handle zip files
|
2021-01-28 23:54:38 +00:00
|
|
|
# URL: https://libzip.org
|
2021-01-30 16:33:56 +00:00
|
|
|
# Maintainer: Tim Biermann, tbier at posteo dot de
|
2021-01-28 23:54:38 +00:00
|
|
|
# Depends on: bzip2 cmake openssl xz zlib
|
2020-02-15 13:46:56 +01:00
|
|
|
|
|
|
|
name=libzip
|
2020-07-17 15:01:39 +02:00
|
|
|
version=1.7.3
|
2020-02-15 13:46:56 +01:00
|
|
|
release=1
|
2020-06-12 12:18:29 +02:00
|
|
|
source=(https://libzip.org/download/$name-$version.tar.xz)
|
2020-02-15 13:46:56 +01:00
|
|
|
|
|
|
|
build() {
|
2021-01-28 23:54:38 +00:00
|
|
|
[[ -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
|
2020-02-15 13:46:56 +01:00
|
|
|
}
|