summaryrefslogtreecommitdiff
path: root/repo/libzip/libzip.xibuild
diff options
context:
space:
mode:
Diffstat (limited to 'repo/libzip/libzip.xibuild')
-rw-r--r--repo/libzip/libzip.xibuild30
1 files changed, 30 insertions, 0 deletions
diff --git a/repo/libzip/libzip.xibuild b/repo/libzip/libzip.xibuild
new file mode 100644
index 0000000..9cb5af2
--- /dev/null
+++ b/repo/libzip/libzip.xibuild
@@ -0,0 +1,30 @@
+#!/bin/sh
+
+NAME="libzip"
+DESC="C library for manipulating zip archives"
+
+MAKEDEPS="bzip2 xz zlib zstd cmake openssl perl ninja"
+
+PKG_VER=1.9.2
+SOURCE="https://libzip.org/download/libzip-$PKG_VER.tar.xz"
+
+build() {
+ cmake -B build -G Ninja \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_INSTALL_LIBDIR=lib \
+ -DENABLE_BZIP2=ON \
+ -DENABLE_LZMA=ON \
+ -DENABLE_OPENSSL=ON \
+ -DENABLE_ZSTD=ON \
+ -DCMAKE_BUILD_TYPE=MinSizeRel
+ cmake --build build
+}
+
+check() {
+ ninja -C build check
+}
+
+package() {
+ DESTDIR="$PKG_DEST" cmake --install build
+}
+