opt/libzip/Pkgfile

20 lines
518 B
Plaintext
Raw Normal View History

2020-02-15 13:46:56 +01:00
# Description: Library to handle zip files
2021-01-29 00:54:38 +01:00
# URL: https://libzip.org
2021-01-30 17:33:56 +01:00
# Maintainer: Tim Biermann, tbier at posteo dot de
2020-02-15 13:46:56 +01:00
name=libzip
2023-08-23 22:33:01 +02:00
version=1.10.1
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() {
2023-06-25 22:03:56 +02:00
cmake -S $name-$version -B build $PKGMK_LIBZIP -G Ninja \
2021-01-29 00:54:38 +01:00
-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
}