Fix various things to use ${DESTDIR}

This commit is contained in:
fosslinux 2022-01-14 21:53:30 +11:00
parent 016b9511d2
commit b8ef19150c
28 changed files with 46 additions and 36 deletions

View file

@ -29,7 +29,10 @@ src_configure() {
src_install() {
# Do not install prebuilt .mo translation catalogs
install bash "${DESTDIR}${PREFIX}/bin"
install -D bash "${DESTDIR}${PREFIX}/bin/bash"
# Work around weird symlink bug
install bash "${DESTDIR}${PREFIX}/bin/sh"
# Needs special handling b/c is currently running - tar doesn't like this
rm -f "${PREFIX}/bin/bash" "${PREFIX}/bin/sh"
}

View file

@ -132,6 +132,6 @@ endef
$(foreach f,$(EXTENSIONS),$(eval $(call build_rule,$f)))
install: all
install perl "$(DESTDIR)$(PREFIX)/bin/perl"
install -D perl "$(DESTDIR)$(PREFIX)/bin/perl"
mkdir -p "$(DESTDIR)$(PRIVLIB_EXP)"
cp -r lib/* "$(DESTDIR)$(PRIVLIB_EXP)"

View file

@ -15,5 +15,5 @@ src_configure() {
src_install() {
default
rm "${PREFIX}/lib/musl/libxbps.so"*
rm "${DESTDIR}${PREFIX}/lib/musl/libxbps.so"*
}