From 9a446f062668ab3e8728ccf352f306aeea95ac99 Mon Sep 17 00:00:00 2001 From: Zach van Rijn Date: Thu, 3 Feb 2022 20:17:15 +0000 Subject: user/minizip-ng: new package --- user/minizip-ng/APKBUILD | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 user/minizip-ng/APKBUILD (limited to 'user/minizip-ng') diff --git a/user/minizip-ng/APKBUILD b/user/minizip-ng/APKBUILD new file mode 100644 index 000000000..7e60b5857 --- /dev/null +++ b/user/minizip-ng/APKBUILD @@ -0,0 +1,32 @@ +# Maintainer: Zach van Rijn +pkgname=minizip-ng +pkgver=3.0.6 +pkgrel=0 +pkgdesc="A zip manipulation library written in C, derived from Mark Adler's implementation" +url="https://github.com/zlib-ng/minizip-ng/wiki" +arch="all" +license="Zlib" +depends="" +makedepends="cmake libtool zlib-dev" +subpackages="$pkgname-dev" +source="$pkgname-$pkgver.tar.gz::https://github.com/zlib-ng/minizip-ng/archive/refs/tags/${pkgver}.tar.gz" + +build() { + cmake . \ + -DCMAKE_BUILD_TYPE=RelWithDebugInfo \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_LIBDIR=lib \ + -DBUILD_SHARED_LIBS=ON \ + -DMZ_BUILD_TESTS=ON + make +} + +check() { + ./test_cmd +} + +package() { + make DESTDIR="$pkgdir" install +} + +sha512sums="92aaad655e7dbec60ab8075435ccdc72314f75f0516aa4a16094215df2b14b108c2b49cdf6c876e396f0f43f52ad63f52ce7db2e119efe25c55b8b873bef9d4f minizip-ng-3.0.6.tar.gz" -- cgit v1.2.3-70-g09d2