summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Rees <maxcrees@me.com>2018-06-04 21:44:54 -0400
committerMax Rees <maxcrees@me.com>2018-06-04 21:44:54 -0400
commit577d8627b43bd18379271db3dcc796cc65c4035f (patch)
treea2f4ece9298c2a6b3d778f4a1019fa1ceca1ba23
parentdc5e0fcd9b712738627e7a9744d1599133cdf8b9 (diff)
downloadpackages-577d8627b43bd18379271db3dcc796cc65c4035f.tar.gz
packages-577d8627b43bd18379271db3dcc796cc65c4035f.tar.bz2
packages-577d8627b43bd18379271db3dcc796cc65c4035f.tar.xz
packages-577d8627b43bd18379271db3dcc796cc65c4035f.zip
user/libzip: new package
-rw-r--r--user/libzip/APKBUILD50
1 files changed, 50 insertions, 0 deletions
diff --git a/user/libzip/APKBUILD b/user/libzip/APKBUILD
new file mode 100644
index 000000000..76b7a2ad8
--- /dev/null
+++ b/user/libzip/APKBUILD
@@ -0,0 +1,50 @@
+# Contributor: k0r10n <k0r10n.dev@gmail.com>
+# Contributor: Jose-Luis Rivas <ghostbar@riseup.net>
+# Contributor: Carlo Landmeter <clandmeter@gmail.com>
+# Maintainer: Max Rees <maxcrees@me.com>
+pkgname=libzip
+pkgver=1.5.1
+pkgrel=1
+pkgdesc="C library for manipulating zip archives"
+url="http://www.nih.at/libzip/index.html"
+arch="all"
+license="BSD-3-Clause"
+depends_dev="zlib-dev"
+makedepends="$depends_dev cmake libressl-dev perl"
+subpackages="$pkgname-dev $pkgname-doc $pkgname-tools"
+source="https://www.nih.at/libzip/$pkgname-$pkgver.tar.xz"
+builddir="$srcdir/$pkgname-$pkgver"
+
+# secfixes:
+# 1.3.0:
+# - CVE-2017-14107
+
+build() {
+ cd "$builddir"
+ cmake \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_INSTALL_LIBDIR=lib \
+ -DBUILD_SHARED_LIBS=True \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DCMAKE_CXX_FLAGS="$CXXFLAGS" \
+ -DCMAKE_C_FLAGS="$CFLAGS"
+ make
+}
+
+check() {
+ cd "$builddir"
+ make check
+}
+
+package() {
+ cd "$builddir"
+ make DESTDIR="$pkgdir" -j1 install
+}
+
+tools() {
+ pkgdesc="$pkgname cmp and merge tools"
+ install -d "$subpkgdir"/usr
+ mv "$pkgdir"/usr/bin "$subpkgdir"/usr
+}
+
+sha512sums="92df9490a9910ebb1da49ecaec96f364fce39a779e1bc739f7796b27b3a864301f5e1ba0108947708dda1d90af7a9e751be54cbb8a0de2a04a48f9f3eb728e3d libzip-1.5.1.tar.xz"