2019-07-06 15:05:38 -04:00
|
|
|
# Description: ZIP-access Library with Easy-to-use API
|
2021-01-26 11:27:54 +00:00
|
|
|
# URL: https://github.com/gdraheim/zziplib
|
|
|
|
# Maintainer: Tim Biermann, tbier at posteo dot de
|
|
|
|
# Depends on: cmake python3 zlib
|
2019-07-06 15:05:38 -04:00
|
|
|
|
|
|
|
name=zziplib
|
2021-01-07 14:29:35 +00:00
|
|
|
version=0.13.72
|
2020-04-19 16:54:36 -04:00
|
|
|
release=1
|
|
|
|
source=(https://github.com/gdraheim/$name/archive/v$version/$name-$version.tar.gz)
|
2019-07-06 15:05:38 -04:00
|
|
|
|
|
|
|
build() {
|
2021-10-31 09:43:06 +01:00
|
|
|
[[ -e /usr/bin/ninja ]] && PKGMK_ZZIPLIB+=' -G Ninja'
|
2019-07-06 15:05:38 -04:00
|
|
|
|
2021-10-31 09:43:06 +01:00
|
|
|
cmake -S $name-$version -B build $PKGMK_ZZIPLIB \
|
|
|
|
-D CMAKE_INSTALL_PREFIX=/usr \
|
|
|
|
-D CMAKE_INSTALL_LIBDIR=lib \
|
|
|
|
-D CMAKE_BUILD_TYPE=Release \
|
|
|
|
-D CMAKE_C_FLAGS_RELEASE="$CFLAGS" \
|
|
|
|
-D ZZIPTEST=OFF \
|
|
|
|
-Wno-dev
|
2019-07-06 15:05:38 -04:00
|
|
|
|
2021-10-31 09:43:06 +01:00
|
|
|
cmake --build build
|
|
|
|
DESTDIR=$PKG cmake --install build
|
2019-07-06 15:05:38 -04:00
|
|
|
}
|