blob: 321db59b3bc1f75561346308e4c59de5c5718347 (
plain)
1 # Description: ZIP-access Library with Easy-to-use API
2 # URL: https://github.com/gdraheim/zziplib
3 # Maintainer: Tim Biermann, tbier at posteo dot de
4 # Depends on: cmake python3 zlib
5
6 name=zziplib
7 version=0.13.72
8 release=1
9 source=(https://github.com/gdraheim/$name/archive/v$version/$name-$version.tar.gz)
10
11 build() {
12 [[ -e /usr/bin/ninja ]] && PKGMK_ZZIPLIB+=' -G Ninja'
13
14 cmake -S $name-$version -B build $PKGMK_ZZIPLIB \
15 -D CMAKE_INSTALL_PREFIX=/usr \
16 -D CMAKE_INSTALL_LIBDIR=lib \
17 -D CMAKE_BUILD_TYPE=Release \
18 -D CMAKE_C_FLAGS_RELEASE="$CFLAGS" \
19 -D ZZIPTEST=OFF \
20 -Wno-dev
21
22 cmake --build build
23 DESTDIR=$PKG cmake --install build
24 }
|