From f29d569cd33a73da5ad675f43a34ad53c5cc9bc6 Mon Sep 17 00:00:00 2001 From: davidovski Date: Thu, 2 Feb 2023 14:10:02 +0000 Subject: Work --- repo/libzip/libzip.xibuild | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 repo/libzip/libzip.xibuild (limited to 'repo/libzip') 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 +} + -- cgit v1.2.1