summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorfelics2019-01-21 12:42:55 +0100
committerfelics2019-01-21 12:42:55 +0100
commit72ddf31b1e888c3d4e99f49cbccab16f62bb49af (patch)
treefd7c375a0ea2927aff64d56552ab3287a63ee866
downloadaur-72ddf31b1e888c3d4e99f49cbccab16f62bb49af.tar.gz
Initial Commit
-rw-r--r--.SRCINFO20
-rw-r--r--PKGBUILD64
2 files changed, 84 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..4046a1efa38
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,20 @@
+pkgbase = minizip2-2.3.3
+ pkgdesc = Mini zip and unzip based on libbsd and zlib. Version 2.x.
+ pkgver = 2.3.3
+ pkgrel = 1
+ url = http://github.com/nmoinvaz/minizip
+ arch = x86_64
+ license = custom
+ makedepends = cmake
+ depends = glibc
+ depends = libbsd
+ depends = zlib
+ provides = minizip2=2.3.3
+ provides = libminizip2=2.3.3
+ conflicts = minizip2
+ conflicts = libminizip2
+ source = minizip-2.3.3.tar.gz::https://github.com/nmoinvaz/minizip/archive/2.3.3.tar.gz
+ sha256sums = 8c74530d3095891525f53cda6aabe1df138255ef53d0f294791cb57c2cb5710c
+
+pkgname = minizip2-2.3.3
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..22fb6bdde71
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,64 @@
+# Maintainer: dreieck
+# Contributor: Guillaume Horel <guillaume.horel@gmail.com>
+
+_pkgorigname=minizip
+_pkgname="${_pkgorigname}2"
+pkgname="${_pkgname}-2.3.3"
+pkgdesc="Mini zip and unzip based on libbsd and zlib. Version 2.x."
+_pkgver=2.3.3
+pkgver="${_pkgver}"
+pkgrel=1
+arch=('x86_64')
+license=('custom')
+url="http://github.com/nmoinvaz/minizip"
+depends=(
+ # 'bzip2'
+ 'glibc'
+ 'libbsd'
+ 'zlib'
+)
+makedepends=(
+ 'cmake'
+)
+provides=(
+ "${_pkgname}=${pkgver}"
+ "lib${_pkgname}=${pkgver}"
+)
+conflicts=(
+ "${_pkgname}"
+ "lib${_pkgname}"
+)
+source=(
+ "${_pkgorigname}-${_pkgver}.tar.gz::https://github.com/nmoinvaz/${_pkgorigname}/archive/${_pkgver}.tar.gz"
+)
+sha256sums=(
+ '8c74530d3095891525f53cda6aabe1df138255ef53d0f294791cb57c2cb5710c'
+)
+
+build() {
+ cd "${srcdir}/${_pkgorigname}-${_pkgver}"
+ cmake \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_INSTALL_LIBDIR=lib/minizip2 \
+ -DCMAKE_INSTALL_INCLUDEDIR=include/minizip2 \
+ -DCMAKE_INSTALL_LIBEXECDIR=libexec/minizip2 \
+ -DCMAKE_INSTALL_OLDINCLUDEDIR=/usr/include/minizip2 \
+ -DBUILD_SHARED_LIBS=ON \
+ -DUSE_AES=ON \
+ -DUSE_BZIP2=ON \
+ -DUSE_LZMA=ON \
+ -DUSE_PKCRYPT=ON \
+ -DUSE_ZLIB=ON \
+ .
+
+ make
+}
+
+package() {
+ cd "${srcdir}/${_pkgorigname}-${_pkgver}"
+
+ make DESTDIR="${pkgdir}" install
+
+ install -D -v -m644 README.md "${pkgdir}/usr/share/doc/${_pkgname}/README.md"
+ install -D -v -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}