summaryrefslogtreecommitdiff
path: root/repo/libzip
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2023-02-02 14:10:02 +0000
committerdavidovski <david@davidovski.xyz>2023-02-02 14:10:02 +0000
commitf29d569cd33a73da5ad675f43a34ad53c5cc9bc6 (patch)
tree76fe6267f8307e7630fc6f53ff99a9767ad40de0 /repo/libzip
parent05d004dfe0c9a9d898fac8a4a0292ca2a74ca391 (diff)
Work
Diffstat (limited to 'repo/libzip')
-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
+}
+