libmicrohttpd: Update to 0.9.60

This commit is contained in:
Alexey Pavlov
2018-11-08 16:27:25 +03:00
parent 419740cf58
commit a735ddba3c
2 changed files with 21 additions and 4 deletions

View File

@@ -0,0 +1,10 @@
--- libmicrohttpd-0.9.60/src/include/mhd_options.h.orig 2018-11-08 15:57:35.408438300 +0300
+++ libmicrohttpd-0.9.60/src/include/mhd_options.h 2018-11-08 15:58:09.001359700 +0300
@@ -83,6 +83,7 @@
#endif
#if defined(_WIN32) && ! defined(__CYGWIN__)
+#include <windows.h>
#ifndef _WIN32_WINNT
#define _WIN32_WINNT 0x0501
#else /* _WIN32_WINNT */

View File

@@ -6,7 +6,7 @@
_realname=libmicrohttpd
pkgbase=mingw-w64-${_realname}
pkgname="${MINGW_PACKAGE_PREFIX}-${_realname}"
pkgver=0.9.59
pkgver=0.9.60
pkgrel=1
pkgdesc="GNU libmicrohttpd is a small C library that is supposed to make it easy to run an HTTP server as part of another application (mingw-w64)"
arch=('any')
@@ -17,11 +17,18 @@ makedepends=("${MINGW_PACKAGE_PREFIX}-gcc"
"${MINGW_PACKAGE_PREFIX}-pkg-config")
checkdepends=("${MINGW_PACKAGE_PREFIX}-curl")
depends=("${MINGW_PACKAGE_PREFIX}-gnutls")
source=("https://ftp.gnu.org/gnu/libmicrohttpd/${_realname}-${pkgver}.tar.gz"{,.sig})
source=("https://ftp.gnu.org/gnu/libmicrohttpd/${_realname}-${pkgver}.tar.gz"{,.sig}
001-fix-verify-_WIN32_WINNT.patch)
validpgpkeys=('D8423BCB326C7907033929C7939E6BE1E29FC3CC' # Christian Grothoff <christian@grothoff.org>
'289FE99E138CF6D473A3F0CFBF7AC4A5EAC2BAF4') # Karlson2k (Evgeny Grin) <k2k@narod.ru>
sha256sums=('9b9ccd7d0b11b0e179f1f58dc2caa3e0c62c8609e1e1dc7dcaadf941b67d923c'
'SKIP')
sha256sums=('cd0e5d3f95a9e55ef7cdf4d0530e997ba00b8411af9149d9287db785d729c471'
'SKIP'
'3432047c28bc8010f99264a703f90764595c7bb83fe01e4cd25d5953420edf8d')
prepare() {
cd ${_realname}-${pkgver}
patch -p1 -i ${srcdir}/001-fix-verify-_WIN32_WINNT.patch
}
build() {
[[ -d ${srcdir}/build-${MINGW_CHOST} ]] && rm -rf ${srcdir}/build-${MINGW_CHOST}