summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Sun2018-08-27 09:49:00 -0400
committerAndrew Sun2018-08-27 09:49:00 -0400
commitf91edcf113ecc832f0e38082c865fa14bc520f8f (patch)
tree2650610b3459e8dfd2866e4b5df214eeebd8df09
parent507a881e5ea1816ef51218904255878b722bf7b9 (diff)
downloadaur-f91edcf113ecc832f0e38082c865fa14bc520f8f.tar.gz
fixes, stripped debug symbols, cosmetics
-rw-r--r--.SRCINFO4
-rw-r--r--PKGBUILD12
-rw-r--r--patches.tar.gzbin52857 -> 52909 bytes
3 files changed, 11 insertions, 5 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 1e7857b3b6f2..8b601abdc41c 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = mingw-w64-python
pkgdesc = Next generation of the python high-level scripting language (mingw-w64)
pkgver = 3.7.0
- pkgrel = 1
+ pkgrel = 2
url = http://www.python.org/
arch = any
license = PSF
@@ -29,7 +29,7 @@ pkgbase = mingw-w64-python
source = patches.tar.gz
source = wine-python.sh
sha1sums = 653cffa5b9f2a28150afe4705600d2e55d89b564
- sha1sums = a16075f44a5222b7b32471aacd6444b60528a620
+ sha1sums = 62f705a61edc4d212053485db7c357d292e53f49
sha1sums = a024e7fd7eea7984a0d050164a4a015dea762da7
pkgname = mingw-w64-python
diff --git a/PKGBUILD b/PKGBUILD
index 851706fdcc11..d8ddd35ea184 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -6,7 +6,7 @@
pkgname=mingw-w64-python
pkgver=3.7.0
_pybasever=3.7
-pkgrel=1
+pkgrel=2
pkgdesc="Next generation of the python high-level scripting language (mingw-w64)"
arch=('any')
license=('PSF')
@@ -32,7 +32,7 @@ source=("http://www.python.org/ftp/python/${pkgver}/Python-${pkgver}.tar.xz"
'patches.tar.gz'
"wine-python.sh")
sha1sums=('653cffa5b9f2a28150afe4705600d2e55d89b564'
- 'a16075f44a5222b7b32471aacd6444b60528a620'
+ '62f705a61edc4d212053485db7c357d292e53f49'
'a024e7fd7eea7984a0d050164a4a015dea762da7')
_architectures="i686-w64-mingw32 x86_64-w64-mingw32"
@@ -335,10 +335,16 @@ package() {
-e "s/'\/share'/sys.prefix + '\/share'/g" \
-i "${pkgdir}/usr/${_arch}"/lib/python${_pybasever}/_sysconfigdata*.py
- # Correct name of _sysconfigdata_m_win32_.py and copy it to lib-dynload
+ # Correct name of _sysconfigdata_m_win32_.py and copy both to lib-dynload
cp -f "${pkgdir}/usr/${_arch}"/lib/python${_pybasever}/_sysconfigdata_m_win_.py "${pkgdir}/usr/${_arch}"/lib/python${_pybasever}/_sysconfigdata_m_win32_.py
+ cp -f "${pkgdir}/usr/${_arch}"/lib/python${_pybasever}/_sysconfigdata_m_win_.py "${pkgdir}/usr/${_arch}"/lib/python${_pybasever}/lib-dynload/_sysconfigdata_m_win_.py
cp -f "${pkgdir}/usr/${_arch}"/lib/python${_pybasever}/_sysconfigdata_m_win32_.py "${pkgdir}/usr/${_arch}"/lib/python${_pybasever}/lib-dynload/_sysconfigdata_m_win32_.py
+ # strip executables and libraries
+ ${_arch}-strip --strip-unneeded "$pkgdir"/usr/${_arch}/bin/*.exe
+ ${_arch}-strip --strip-unneeded "$pkgdir"/usr/${_arch}/bin/*.dll
+ ${_arch}-strip -g "$pkgdir"/usr/${_arch}/lib/*.a
+
# install wrappers
mkdir -p ${pkgdir}/usr/bin
install -m755 ${_arch}-python${_pybasever} "${pkgdir}"/usr/bin/${_arch}-python${_pybasever}
diff --git a/patches.tar.gz b/patches.tar.gz
index afc5ec8eee8e..e26f53acca83 100644
--- a/patches.tar.gz
+++ b/patches.tar.gz
Binary files differ