python-cachecontrol: drop install scripts

This commit is contained in:
Christoph Reiter
2021-04-16 12:20:37 +02:00
parent d3917d7e46
commit 08c77fce00
3 changed files with 3 additions and 35 deletions

View File

@@ -7,7 +7,7 @@ provides=("${MINGW_PACKAGE_PREFIX}-python3-${_realname}")
conflicts=("${MINGW_PACKAGE_PREFIX}-python3-${_realname}")
replaces=("${MINGW_PACKAGE_PREFIX}-python3-${_realname}")
pkgver=0.12.6
pkgrel=1
pkgrel=2
pkgdesc="httplib2 caching for requests (mingw-w64)"
arch=('any')
mingw_arch=('mingw32' 'mingw64' 'ucrt64')
@@ -22,7 +22,6 @@ makedepends=("${MINGW_PACKAGE_PREFIX}-python-setuptools")
# "${MINGW_PACKAGE_PREFIX}-python-pytest"
# "${MINGW_PACKAGE_PREFIX}-python-lockfile"
# "${MINGW_PACKAGE_PREFIX}-python-cherrypy")
install=${_realname}3-${CARCH}.install
options=('staticlibs' 'strip' '!debug')
source=("${_realname}-${pkgver}.tar.gz"::"${url}/archive/v${pkgver}.tar.gz")
sha256sums=('2ec120838f445bff473cd8b8206ddae3650679142976927179743fabb876f3e3')
@@ -78,10 +77,7 @@ package() {
${MINGW_PREFIX}/bin/python setup.py install --prefix=${MINGW_PREFIX} \
--root="${pkgdir}" --optimize=1 --skip-build
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
}

View File

@@ -1,14 +0,0 @@
post_install() {
cd mingw32
local _prefix=$(pwd -W)
cd -
local _it
for _it in doesitcache; do
sed -e "s|/mingw32|${_prefix}|g" \
-i ${_prefix}/bin/${_it}-script.py
done
}
post_upgrade() {
post_install
}

View File

@@ -1,14 +0,0 @@
post_install() {
cd mingw64
local _prefix=$(pwd -W)
cd -
local _it
for _it in doesitcache; do
sed -e "s|/mingw64|${_prefix}|g" \
-i ${_prefix}/bin/${_it}-script.py
done
}
post_upgrade() {
post_install
}