From 510e490b33e13c22ae5fe81e3875fa479ed2fdc2 Mon Sep 17 00:00:00 2001 From: Christoph Reiter Date: Fri, 16 Apr 2021 12:44:58 +0200 Subject: [PATCH] python-sqlparse: drop install scripts --- mingw-w64-python-sqlparse/PKGBUILD | 10 +++------- mingw-w64-python-sqlparse/sqlparse3-i686.install | 14 -------------- mingw-w64-python-sqlparse/sqlparse3-x86_64.install | 14 -------------- 3 files changed, 3 insertions(+), 35 deletions(-) delete mode 100644 mingw-w64-python-sqlparse/sqlparse3-i686.install delete mode 100644 mingw-w64-python-sqlparse/sqlparse3-x86_64.install diff --git a/mingw-w64-python-sqlparse/PKGBUILD b/mingw-w64-python-sqlparse/PKGBUILD index 7a0e886846..4233edd544 100644 --- a/mingw-w64-python-sqlparse/PKGBUILD +++ b/mingw-w64-python-sqlparse/PKGBUILD @@ -7,7 +7,7 @@ provides=("${MINGW_PACKAGE_PREFIX}-python3-${_realname}") conflicts=("${MINGW_PACKAGE_PREFIX}-python3-${_realname}") replaces=("${MINGW_PACKAGE_PREFIX}-python3-${_realname}") pkgver=0.3.1 -pkgrel=1 +pkgrel=2 pkgdesc="Non-validating SQL parser for Python (mingw-w64)" arch=('any') mingw_arch=('mingw32' 'mingw64' 'ucrt64') @@ -16,7 +16,6 @@ license=('BSD') depends=("${MINGW_PACKAGE_PREFIX}-python") makedepends=("${MINGW_PACKAGE_PREFIX}-python-setuptools") options=('staticlibs' 'strip' '!debug') -install=${_realname}3-${CARCH}.install source=("${_realname}-$pkgver.tar.gz::https://github.com/andialbrecht/sqlparse/archive/${pkgver}.tar.gz") sha256sums=('344b539482b75c244ac69fbb160d0f4d63a288a392475c8418ca692c594561f9') @@ -47,10 +46,7 @@ package() { install -Dm644 LICENSE "${pkgdir}${MINGW_PREFIX}/share/licenses/python-${_realname}/LICENSE" - 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 + sed -e '1 { s/^#!.*$// }' -i ${_f} done } diff --git a/mingw-w64-python-sqlparse/sqlparse3-i686.install b/mingw-w64-python-sqlparse/sqlparse3-i686.install deleted file mode 100644 index 956d5c1488..0000000000 --- a/mingw-w64-python-sqlparse/sqlparse3-i686.install +++ /dev/null @@ -1,14 +0,0 @@ -post_install() { - cd mingw32 - local _prefix=$(pwd -W) - cd - - local _it - for _it in sqlformat; do - sed -e "s|/mingw32|${_prefix}|g" \ - -i ${_prefix}/bin/${_it}-script.py - done -} - -post_upgrade() { - post_install -} diff --git a/mingw-w64-python-sqlparse/sqlparse3-x86_64.install b/mingw-w64-python-sqlparse/sqlparse3-x86_64.install deleted file mode 100644 index 6b3000415c..0000000000 --- a/mingw-w64-python-sqlparse/sqlparse3-x86_64.install +++ /dev/null @@ -1,14 +0,0 @@ -post_install() { - cd mingw64 - local _prefix=$(pwd -W) - cd - - local _it - for _it in sqlformat; do - sed -e "s|/mingw64|${_prefix}|g" \ - -i ${_prefix}/bin/${_it}-script.py - done -} - -post_upgrade() { - post_install -}