summaryrefslogtreecommitdiff
path: root/repo/zziplib/zziplib.xibuild
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2022-06-03 13:05:13 +0100
committerdavidovski <david@davidovski.xyz>2022-06-03 13:05:13 +0100
commit66c326b6d65388e9f1003715ad9675505f01f9d2 (patch)
tree40d7355cccfa3464902cf339a563e744c28a7101 /repo/zziplib/zziplib.xibuild
parentfccdaa986f67f820df2914bef851d5fed77abac8 (diff)
added porting from alpine linux
Diffstat (limited to 'repo/zziplib/zziplib.xibuild')
-rw-r--r--repo/zziplib/zziplib.xibuild29
1 files changed, 29 insertions, 0 deletions
diff --git a/repo/zziplib/zziplib.xibuild b/repo/zziplib/zziplib.xibuild
new file mode 100644
index 0000000..a688730
--- /dev/null
+++ b/repo/zziplib/zziplib.xibuild
@@ -0,0 +1,29 @@
+#!/bin/sh
+
+NAME="zziplib"
+DESC="Lightweight library to easily extract data from zip files"
+
+MAKEDEPS=" cmake zlib python bash ninja"
+
+PKG_VER=0.13.72
+SOURCE="https://github.com/gdraheim/zziplib/archive/v$PKG_VER.tar.gz"
+
+build() {
+ cmake -B build -G Ninja \
+ -DCMAKE_BUILD_TYPE=None \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_INSTALL_LIBDIR=lib \
+ -DBUILD_SHARED_LIBS=True \
+ -DBUILD_STATIC_LIBS=False \
+ -DBUILD_TESTS=OFF \
+ -DMSVC_STATIC_RUNTIME=OFF \
+ -DZZIPSDL=OFF \
+ -DZZIPTEST=OFF \
+ -DZZIPWRAP=OFF \
+ .
+ ninja -C build
+}
+
+package() {
+ DESTDIR="$PKG_DEST" ninja -C build install
+}