summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichel Zou2018-01-20 09:44:48 +0100
committerMichel Zou2018-01-20 09:44:48 +0100
commit8d2e19affc379b6faed643e23d93da6c8f1dfd4c (patch)
treed1bf6277f56229048a9789f8e188c1097c6767e3
parent922288fe5d93324b1c8793959dc8c64cbb317739 (diff)
downloadaur-8d2e19affc379b6faed643e23d93da6c8f1dfd4c.tar.gz
1.4.0
-rw-r--r--.SRCINFO11
-rw-r--r--PKGBUILD21
2 files changed, 20 insertions, 12 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 87e2b5ac3bc..e184ee21620 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,8 +1,8 @@
# Generated by mksrcinfo v8
-# Sun Sep 3 08:19:54 UTC 2017
+# Sat Jan 20 08:44:48 UTC 2018
pkgbase = mingw-w64-libzip
pkgdesc = A C library for reading, creating, and modifying zip archives (mingw-w64)
- pkgver = 1.3.0
+ pkgver = 1.4.0
pkgrel = 1
url = http://www.nih.at/libzip/index.html
arch = any
@@ -10,13 +10,14 @@ pkgbase = mingw-w64-libzip
makedepends = mingw-w64-cmake
depends = mingw-w64-crt
depends = mingw-w64-zlib
+ depends = mingw-w64-bzip2
options = staticlibs
options = !buildflags
options = !strip
- source = http://www.nih.at/libzip/libzip-1.3.0.tar.xz
+ source = http://www.nih.at/libzip/libzip-1.4.0.tar.xz
source = libzip_cmake-fixes.patch
- md5sums = bf0342c919bea07ba8197a1691a4d2da
- md5sums = 46d3be836580abcdcb722d86c4f9a9b0
+ sha256sums = e508aba025f5f94b267d5120fc33761bcd98440ebe49dbfe2ed3df3afeacc7b1
+ sha256sums = 117dbe507e18381e380512ffe149c7340dcdaa1c17f2a34633501d982fa4dcce
pkgname = mingw-w64-libzip
diff --git a/PKGBUILD b/PKGBUILD
index 750ef3d0844..1a9efc70488 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,25 +1,27 @@
pkgname=mingw-w64-libzip
-pkgver=1.3.0
+pkgver=1.4.0
pkgrel=1
pkgdesc="A C library for reading, creating, and modifying zip archives (mingw-w64)"
url="http://www.nih.at/libzip/index.html"
license=('BSD')
arch=(any)
-depends=('mingw-w64-crt' 'mingw-w64-zlib')
+depends=('mingw-w64-crt' 'mingw-w64-zlib' 'mingw-w64-bzip2')
makedepends=('mingw-w64-cmake')
options=('staticlibs' '!buildflags' '!strip')
source=("http://www.nih.at/libzip/libzip-${pkgver}.tar.xz"
'libzip_cmake-fixes.patch')
-md5sums=('bf0342c919bea07ba8197a1691a4d2da'
- '46d3be836580abcdcb722d86c4f9a9b0')
+sha256sums=('e508aba025f5f94b267d5120fc33761bcd98440ebe49dbfe2ed3df3afeacc7b1'
+ '117dbe507e18381e380512ffe149c7340dcdaa1c17f2a34633501d982fa4dcce')
_architectures="i686-w64-mingw32 x86_64-w64-mingw32"
prepare() {
cd "$srcdir/libzip-${pkgver}"
- # https://github.com/nih-at/libzip/pull/7
- patch -p1 -i "$srcdir/libzip_cmake-fixes.patch"
+
+ # disable tests/examples
+ sed -i "s|ADD_SUBDIRECTORY(regress)||g" CMakeLists.txt
+ sed -i "s|ADD_SUBDIRECTORY(examples)||g" CMakeLists.txt
}
build() {
@@ -29,14 +31,19 @@ build() {
${_arch}-cmake ..
make
popd
+ mkdir -p build-${_arch}-static && pushd build-${_arch}-static
+ ${_arch}-cmake -DBUILD_SHARED_LIBS=OFF ..
+ make
+ popd
done
}
package() {
for _arch in ${_architectures}; do
+ cd "$srcdir/libzip-${pkgver}/build-$_arch-static"
+ make DESTDIR="${pkgdir}" install
cd "$srcdir/libzip-${pkgver}/build-$_arch"
make DESTDIR="${pkgdir}" install
- ln -s /usr/${_arch}/lib/libzip/include/zipconf.h "$pkgdir"/usr/${_arch}/include/zipconf.h
rm -r "$pkgdir"/usr/${_arch}/share/
rm "$pkgdir"/usr/${_arch}/bin/*.exe
${_arch}-strip --strip-unneeded "$pkgdir"/usr/${_arch}/bin/*.dll