# Description: Library to handle zip files
# URL: https://libzip.org
# Maintainer: Tim Biermann, tbier at posteo dot de

name=libzip
version=1.10.1
release=1
source=(https://libzip.org/download/$name-$version.tar.xz)

build() {
  cmake -S $name-$version -B build $PKGMK_LIBZIP -G Ninja \
    -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
}
