diff --git a/mingw-w64-python-ndg-httpsclient/PKGBUILD b/mingw-w64-python-ndg-httpsclient/PKGBUILD index c3a48190a8..c757045407 100644 --- a/mingw-w64-python-ndg-httpsclient/PKGBUILD +++ b/mingw-w64-python-ndg-httpsclient/PKGBUILD @@ -8,7 +8,7 @@ provides=("${MINGW_PACKAGE_PREFIX}-python3-${_realname}") conflicts=("${MINGW_PACKAGE_PREFIX}-python3-${_realname}") replaces=("${MINGW_PACKAGE_PREFIX}-python3-${_realname}") pkgver=0.5.1 -pkgrel=1 +pkgrel=2 pkgdesc="Provides enhanced HTTPS support for httplib and urllib2 using PyOpenSSL (mingw-w64)" url='https://pypi.python.org/pypi/ndg-httpsclient' license=('BSD') @@ -17,7 +17,6 @@ mingw_arch=('mingw32' 'mingw64' 'ucrt64') depends=("${MINGW_PACKAGE_PREFIX}-python-pyopenssl" "${MINGW_PACKAGE_PREFIX}-python-pyasn1") makedepends=("${MINGW_PACKAGE_PREFIX}-python-setuptools") -install=${_realname}3-${CARCH}.install source=("${_realname}-${pkgver}.tar.gz"::"https://files.pythonhosted.org/packages/source/n/${_realname}/${_pyname}-${pkgver}.tar.gz") sha256sums=('d72faed0376ab039736c2ba12e30695e2788c4aa569c9c3e3d72131de2592210') @@ -38,8 +37,7 @@ package() { ${MINGW_PREFIX}/bin/python setup.py install --prefix=${MINGW_PREFIX} --root="${pkgdir}" --optimize=1 --skip-build # fix python command in files - local PREFIX_WIN=$(cygpath -am ${MINGW_PREFIX}) for _f in "${pkgdir}${MINGW_PREFIX}"/bin/*.py; do - sed -e "s|${PREFIX_WIN}|${MINGW_PREFIX}|g" -i ${_f} + sed -e '1 { s/^#!.*$// }' -i ${_f} done } diff --git a/mingw-w64-python-ndg-httpsclient/ndg-httpsclient3-i686.install b/mingw-w64-python-ndg-httpsclient/ndg-httpsclient3-i686.install deleted file mode 100644 index 8704a88eeb..0000000000 --- a/mingw-w64-python-ndg-httpsclient/ndg-httpsclient3-i686.install +++ /dev/null @@ -1,14 +0,0 @@ -post_install() { - cd mingw32 - local _prefix=$(pwd -W) - cd - - local _it - for _it in ndg_httpclient; do - sed -e "s|/mingw32|${_prefix}|g" \ - -i ${_prefix}/bin/${_it}-script.py - done -} - -post_upgrade() { - post_install -} diff --git a/mingw-w64-python-ndg-httpsclient/ndg-httpsclient3-x86_64.install b/mingw-w64-python-ndg-httpsclient/ndg-httpsclient3-x86_64.install deleted file mode 100644 index f028df0951..0000000000 --- a/mingw-w64-python-ndg-httpsclient/ndg-httpsclient3-x86_64.install +++ /dev/null @@ -1,14 +0,0 @@ -post_install() { - cd mingw64 - local _prefix=$(pwd -W) - cd - - local _it - for _it in ndg_httpclient; do - sed -e "s|/mingw64|${_prefix}|g" \ - -i ${_prefix}/bin/${_it}-script.py - done -} - -post_upgrade() { - post_install -}