summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichel Zou2018-10-31 18:29:19 +0100
committerMichel Zou2018-10-31 18:29:19 +0100
commite79ede5601e43489a971f9a8e337cb9670399f19 (patch)
tree7de356d46d57474644b1e340ab69e59599e79b35
parent210e969d7fc49a83b63a3984098228b4aad061ef (diff)
downloadaur-e79ede5601e43489a971f9a8e337cb9670399f19.tar.gz
bpo-11566
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD3
2 files changed, 3 insertions, 2 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 56e867e27b47..8d49be91bca1 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = mingw-w64-python27-bin
pkgdesc = A high-level scripting language (native MSVC version) (mingw-w64)
pkgver = 2.7.15
- pkgrel = 1
+ pkgrel = 2
url = http://www.python.org/
arch = any
license = PSF
diff --git a/PKGBUILD b/PKGBUILD
index 3f5095b78123..574be550ff96 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,7 +1,7 @@
pkgname=mingw-w64-python27-bin
pkgver=2.7.15
_pybasever=27
-pkgrel=1
+pkgrel=2
pkgdesc="A high-level scripting language (native MSVC version) (mingw-w64)"
arch=('any')
license=('PSF')
@@ -29,6 +29,7 @@ build() {
fi
mkdir -p "build-${_arch}" && pushd "build-${_arch}"
msiexec /i "${srcdir}"/python-${pkgver}${target}.msi /qb TARGETDIR=$PWD
+ sed -i "s|#define hypot _hypot|/*#define hypot _hypot*/|g" include/pyconfig.h
gendef python${_pybasever}.dll
${_arch}-dlltool --dllname python${_pybasever}.dll --def python${_pybasever}.def --output-lib libs/libpython${_pybasever}.dll.a
sed "s|@TRIPLE@|${_arch}|g;s|@PYVER@|${_pybasever}|g" "${srcdir}"/wine-python.sh > ${_arch}-python${_pybasever}-bin