MINGW-packages/mingw-w64-python-cachecontrol/cachecontrol2-x86_64.install
Dan Yeaw fddd9ee6c6 Use current path prefix to find Python script files to modify
When using pacman to install packages, the --root option can be set to
install them to an alternative location. The current install scripts
don't take this in to account which causes no such file or directory
errors. This modifies the sed command to use the full prefix path
when renaming the shebang.

Signed-off-by: Dan Yeaw <dan@yeaw.me>
2019-03-27 13:02:27 -04:00

15 lines
231 B
Plaintext

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