summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichel Zou2016-10-29 00:38:04 +0200
committerMichel Zou2016-10-29 00:38:04 +0200
commit3c17e451ec9e3bde7e32365b75a7bf96655f1eca (patch)
tree34c6938dc4bd21069523f98c04ce9d23864d8a21
downloadaur-3c17e451ec9e3bde7e32365b75a7bf96655f1eca.tar.gz
import
-rw-r--r--.SRCINFO22
-rw-r--r--PKGBUILD58
2 files changed, 80 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..1af3ae411da
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,22 @@
+# Generated by mksrcinfo v8
+# Fri Oct 28 22:38:04 UTC 2016
+pkgbase = mingw-w64-minizip
+ pkgdesc = ZIP file extraction library (mingw-w64)
+ pkgver = 1.2.8
+ pkgrel = 1
+ epoch = 1
+ url = https://github.com/nmoinvaz/minizip
+ arch = any
+ license = ZLIB
+ license = custom
+ makedepends = git
+ makedepends = mingw-w64-configure
+ depends = mingw-w64-zlib
+ options = !buildflags
+ options = staticlibs
+ options = !strip
+ source = git://github.com/nmoinvaz/minizip.git#commit=dc41b3b
+ md5sums = SKIP
+
+pkgname = mingw-w64-minizip
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..badbd128559
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,58 @@
+pkgname=mingw-w64-minizip
+pkgver=1.2.8
+pkgrel=1
+epoch=1
+pkgdesc='ZIP file extraction library (mingw-w64)'
+url='https://github.com/nmoinvaz/minizip'
+license=('ZLIB' 'custom')
+arch=('any')
+makedepends=('git' 'mingw-w64-configure')
+options=('!buildflags' 'staticlibs' '!strip')
+depends=('mingw-w64-zlib')
+source=("git://github.com/nmoinvaz/minizip.git#commit=dc41b3b")
+md5sums=('SKIP')
+
+_architectures="i686-w64-mingw32 x86_64-w64-mingw32"
+
+
+prepare() {
+ cd minizip
+
+ rm -f Makefile
+ autoreconf -i
+ autoconf && automake --add-missing && automake
+}
+
+build() {
+ cd minizip
+ for _arch in ${_architectures}; do
+ mkdir -p build-${_arch} && pushd build-${_arch}
+ ${_arch}-configure ..
+ make
+ popd
+ done
+}
+
+package() {
+ for _arch in ${_architectures}; do
+ cd "$srcdir/minizip/build-${_arch}"
+ make install DESTDIR="$pkgdir"
+# ${_arch}-strip --strip-unneeded "$pkgdir"/usr/${_arch}/bin/*.dll
+ ${_arch}-strip -g "$pkgdir"/usr/${_arch}/lib/*.a
+ done
+}
+#
+# build() {
+# cd minizip
+#
+# ./configure --prefix=/usr
+# make
+# }
+#
+# package() {
+# cd minizip
+#
+# make install DESTDIR="$pkgdir"
+# libtool --finish "$pkgdir/usr/lib"
+# install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+# }