summaryrefslogtreecommitdiff
path: root/libzip/Pkgfile
blob: c609e218de3801bb7fb53848bc92417933521889 (plain)
    1 # Description: Library to handle zip files
    2 # URL: https://libzip.org
    3 # Maintainer: Tim Biermann, tbier at posteo dot de
    4 # Depends on: cmake
    5 # Optional: ninja
    6 
    7 name=libzip
    8 version=1.9.2
    9 release=1
   10 source=(https://libzip.org/download/$name-$version.tar.xz)
   11 
   12 build() {
   13   [[ -e /usr/bin/ninja ]] && PKGMK_LIBZIP+=' -G Ninja'
   14 
   15   cmake -S $name-$version -B build $PKGMK_LIBZIP \
   16     -D CMAKE_BUILD_TYPE=Release \
   17     -D CMAKE_C_FLAGS_RELEASE="$CFLAGS" \
   18     -D CMAKE_INSTALL_PREFIX=/usr \
   19     -D CMAKE_INSTALL_LIBDIR=lib \
   20     -D ENABLE_GNUTLS=OFF
   21   cmake --build build
   22   DESTDIR=$PKG cmake --install build
   23 }

Generated by cgit