xbps-src: fix hooks that are expected to be used in subpkgs.
This commit is contained in:
parent
5a7ae5989e
commit
aed0f3ee0e
3 changed files with 3 additions and 3 deletions
|
@ -2,6 +2,6 @@
|
|||
|
||||
hook() {
|
||||
if [ "$XBPS_TARGET_MACHINE" = "i686" ]; then
|
||||
rm -f ${DESTDIR}/usr/lib32
|
||||
rm -f ${PKGDESTDIR}/usr/lib32
|
||||
fi
|
||||
}
|
||||
|
|
|
@ -3,6 +3,6 @@
|
|||
hook() {
|
||||
if [ "$XBPS_TARGET_MACHINE" = "i686" ]; then
|
||||
vmkdir usr/lib
|
||||
ln -sf lib ${DESTDIR}/usr/lib32
|
||||
ln -sf lib ${PKGDESTDIR}/usr/lib32
|
||||
fi
|
||||
}
|
||||
|
|
|
@ -88,8 +88,8 @@ if [ ! -f $XBPS_SUBPKG_INSTALL_DONE ]; then
|
|||
|
||||
install -d $PKGDESTDIR
|
||||
if declare -f pkg_install >/dev/null; then
|
||||
run_pkg_hooks pre-install
|
||||
export XBPS_PKGDESTDIR=1
|
||||
run_pkg_hooks pre-install
|
||||
run_func pkg_install
|
||||
fi
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue