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>
31 lines
694 B
Plaintext
31 lines
694 B
Plaintext
post_install() {
|
|
cd mingw32
|
|
local _prefix=$(pwd -W)
|
|
cd -
|
|
local _it
|
|
for _it in fonttools2; do
|
|
sed -e "s|/mingw32|${_prefix}|g" \
|
|
-i ${_prefix}/bin/${_it}-script.py
|
|
done
|
|
for _it in pyftinspect2; do
|
|
sed -e "s|/mingw32|${_prefix}|g" \
|
|
-i ${_prefix}/bin/${_it}-script.py
|
|
done
|
|
for _it in pyftmerge2; do
|
|
sed -e "s|/mingw32|${_prefix}|g" \
|
|
-i ${_prefix}/bin/${_it}-script.py
|
|
done
|
|
for _it in pyftsubset2; do
|
|
sed -e "s|/mingw32|${_prefix}|g" \
|
|
-i ${_prefix}/bin/${_it}-script.py
|
|
done
|
|
for _it in ttx2; do
|
|
sed -e "s|/mingw32|${_prefix}|g" \
|
|
-i ${_prefix}/bin/${_it}-script.py
|
|
done
|
|
}
|
|
|
|
post_upgrade() {
|
|
post_install
|
|
}
|