summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO13
-rw-r--r--PKGBUILD27
2 files changed, 23 insertions, 17 deletions
diff --git a/.SRCINFO b/.SRCINFO
index b3f4db785ae..615d9755d49 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,19 +1,20 @@
pkgbase = mingw-w64-minizip
pkgdesc = ZIP file extraction library (mingw-w64)
- pkgver = 1.2.8
- pkgrel = 2
+ pkgver = 1.2.11
+ pkgrel = 1
epoch = 1
- url = https://github.com/nmoinvaz/minizip
+ url = https://www.zlib.net/
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
+ source = https://zlib.net/zlib-1.2.11.tar.gz
+ source = https://zlib.net/zlib-1.2.11.tar.gz.asc
+ validpgpkeys = 5ED46A6721D365587791E2AA783FCD8E58BCAFBA
+ md5sums = 1c9f62f0778697a09d36121ead88e08e
md5sums = SKIP
pkgname = mingw-w64-minizip
diff --git a/PKGBUILD b/PKGBUILD
index aa780f6d5e9..c494f64e577 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,29 +1,34 @@
pkgname=mingw-w64-minizip
-pkgver=1.2.8
-pkgrel=2
+pkgver=1.2.11
+pkgrel=1
epoch=1
pkgdesc='ZIP file extraction library (mingw-w64)'
-url='https://github.com/nmoinvaz/minizip'
-license=('ZLIB' 'custom')
+url='https://www.zlib.net/'
+license=('custom')
arch=('any')
-makedepends=('git' 'mingw-w64-configure')
+makedepends=('mingw-w64-configure')
options=('!buildflags' 'staticlibs' '!strip')
depends=('mingw-w64-zlib')
-source=("git://github.com/nmoinvaz/minizip.git#commit=dc41b3b")
-md5sums=('SKIP')
+source=("https://zlib.net/zlib-${pkgver}.tar.gz"{,.asc})
+validpgpkeys=('5ED46A6721D365587791E2AA783FCD8E58BCAFBA') # Mark Adler <madler@alumni.caltech.edu>
+md5sums=('1c9f62f0778697a09d36121ead88e08e'
+ 'SKIP')
_architectures="i686-w64-mingw32 x86_64-w64-mingw32"
prepare() {
- cd minizip
- sed -i "s|\-version\-info|\-no\-undefined \-version\-info|g" Makefile.am
+ cd "$srcdir"/zlib-${pkgver}
+ # https://github.com/madler/zlib/pull/229: don't install crypt.h
+ curl -L https://github.com/madler/zlib/pull/229.patch | patch -p1
+ cd contrib/minizip
+ sed -i "s|\-version\-info|\-no\-undefined \-version\-info|g" Makefile.am
autoreconf -vfi
}
build() {
- cd minizip
+ cd "$srcdir"/zlib-${pkgver}/contrib/minizip
for _arch in ${_architectures}; do
mkdir -p build-${_arch} && pushd build-${_arch}
${_arch}-configure ..
@@ -34,7 +39,7 @@ build() {
package() {
for _arch in ${_architectures}; do
- cd "$srcdir/minizip/build-${_arch}"
+ cd "$srcdir"/zlib-${pkgver}/contrib/minizip/build-${_arch}
make install DESTDIR="$pkgdir"
${_arch}-strip --strip-unneeded "$pkgdir"/usr/${_arch}/bin/*.dll
${_arch}-strip -g "$pkgdir"/usr/${_arch}/lib/*.a