From a6a4dff387af3e810eac2c9bd305e9b7cf260bcb Mon Sep 17 00:00:00 2001 From: Naveen M K Date: Wed, 1 Dec 2021 19:59:12 +0530 Subject: [PATCH] python-hypothesis: fix install scripts --- mingw-w64-python-hypothesis/PKGBUILD | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/mingw-w64-python-hypothesis/PKGBUILD b/mingw-w64-python-hypothesis/PKGBUILD index c37d9c5fcc..eef124ce59 100644 --- a/mingw-w64-python-hypothesis/PKGBUILD +++ b/mingw-w64-python-hypothesis/PKGBUILD @@ -7,7 +7,7 @@ provides=("${MINGW_PACKAGE_PREFIX}-python3-${_realname}") conflicts=("${MINGW_PACKAGE_PREFIX}-python3-${_realname}") replaces=("${MINGW_PACKAGE_PREFIX}-python3-${_realname}") pkgver=6.24.5 -pkgrel=1 +pkgrel=2 pkgdesc="Advanced Quickcheck style testing library for Python (mingw-w64)" arch=('any') mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clang32') @@ -93,4 +93,8 @@ package() { MSYS2_ARG_CONV_EXCL="--prefix=;--install-scripts=;--install-platlib=" \ ${MINGW_PREFIX}/bin/python setup.py install --prefix=${MINGW_PREFIX} \ --root="${pkgdir}" --optimize=1 --skip-build + for _f in "${pkgdir}${MINGW_PREFIX}"/bin/*-script.py; do + # Remove shebang line + sed -e '1 { s/^#!.*$// }' -i "${_f}" + done }