python-pyserial: update to 3.5
This commit is contained in:
@@ -6,18 +6,18 @@ pkgname=("${MINGW_PACKAGE_PREFIX}-python-${_realname}")
|
||||
provides=("${MINGW_PACKAGE_PREFIX}-python3-${_realname}")
|
||||
conflicts=("${MINGW_PACKAGE_PREFIX}-python3-${_realname}")
|
||||
replaces=("${MINGW_PACKAGE_PREFIX}-python3-${_realname}")
|
||||
pkgver=3.4
|
||||
pkgrel=4
|
||||
pkgver=3.5
|
||||
pkgrel=1
|
||||
pkgdesc="Multiplatform Serial Port Module for Python (mingw-w64)"
|
||||
arch=('any')
|
||||
mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clang32')
|
||||
mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clang32' 'clangarm64')
|
||||
url='https://github.com/pyserial/pyserial/'
|
||||
license=('custom:PYTHON')
|
||||
depends=("${MINGW_PACKAGE_PREFIX}-python")
|
||||
makedepends=("${MINGW_PACKAGE_PREFIX}-python-setuptools")
|
||||
options=('staticlibs' 'strip' '!debug')
|
||||
source=("${_realname}-${pkgver}.tar.gz"::"https://github.com/pyserial/pyserial/archive/v${pkgver}.tar.gz")
|
||||
sha512sums=('d144897b7b86a6af1f0961fc2b2e71c28419e9afba50245d85c2cb3f1697c2a9d1a4c08576ca8cfb22c5a0adf34e50a62e8c54f903758eece1926d1cb6e83949')
|
||||
sha512sums=('c2a700f5e08905bdab070c95cec41d6d423c20d2a9648c8c2f048db86de72f39fe2b8df560172d5b9d480be44c35ff0799df8f1d684d3f41f8fc61174105256e')
|
||||
|
||||
prepare() {
|
||||
rm -rf python-build-${CARCH} | true
|
||||
@@ -43,10 +43,8 @@ package() {
|
||||
|
||||
install -Dm644 LICENSE.txt "${pkgdir}${MINGW_PREFIX}/share/licenses/python-${_realname}/LICENSE.txt"
|
||||
|
||||
local PREFIX_WIN=$(cygpath -wm ${MINGW_PREFIX})
|
||||
# fix python command in files
|
||||
for _f in "${pkgdir}${MINGW_PREFIX}"/bin/*.py; do
|
||||
sed -e "s|/usr/bin/env |${MINGW_PREFIX}|g" \
|
||||
-e "s|${PREFIX_WIN}|${MINGW_PREFIX}|g" -i ${_f}
|
||||
for _f in "${pkgdir}${MINGW_PREFIX}"/bin/*-script.py; do
|
||||
# Remove shebang line
|
||||
sed -e '1 { s/^#!.*$// }' -i "${_f}"
|
||||
done
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user