diff --git a/common/environment/build_style/.empty b/common/environment/build_style/.empty new file mode 100644 index 00000000000..e69de29bb2d diff --git a/common/xbps-src/libexec/xbps-src-doinstall.sh b/common/xbps-src/libexec/xbps-src-doinstall.sh index 777643cd979..ac994800824 100755 --- a/common/xbps-src/libexec/xbps-src-doinstall.sh +++ b/common/xbps-src/libexec/xbps-src-doinstall.sh @@ -83,9 +83,12 @@ if [ ! -f $XBPS_SUBPKG_INSTALL_DONE ]; then for f in ${XBPS_COMMONDIR}/environment/setup-subpkg/*.sh; do source_file "$f" done + ${PKGNAME}_package pkgname=$PKGNAME + source_file $XBPS_COMMONDIR/environment/build_style/${build_style}.sh + install -d $PKGDESTDIR if declare -f pkg_install >/dev/null; then export XBPS_PKGDESTDIR=1 diff --git a/common/xbps-src/libexec/xbps-src-prepkg.sh b/common/xbps-src/libexec/xbps-src-prepkg.sh index b89d741feca..6a095966501 100755 --- a/common/xbps-src/libexec/xbps-src-prepkg.sh +++ b/common/xbps-src/libexec/xbps-src-prepkg.sh @@ -37,10 +37,12 @@ if [ "$sourcepkg" != "$PKGNAME" ]; then for f in ${XBPS_COMMONDIR}/environment/setup-subpkg/*.sh; do source_file "$f" done + ${PKGNAME}_package pkgname=$PKGNAME fi +source_file $XBPS_COMMONDIR/environment/build_style/${build_style}.sh setup_pkg_depends $pkgname run_pkg_hooks pre-pkg touch -f $XBPS_PREPKG_DONE diff --git a/common/xbps-src/shutils/common.sh b/common/xbps-src/shutils/common.sh index 2156f647471..b1592995462 100644 --- a/common/xbps-src/shutils/common.sh +++ b/common/xbps-src/shutils/common.sh @@ -406,4 +406,6 @@ setup_pkg() { export XBPS_STATEDIR="${XBPS_BUILDDIR}/.xbps-${sourcepkg}" export XBPS_WRAPPERDIR="${XBPS_STATEDIR}/wrappers" mkdir -p $XBPS_WRAPPERDIR + + source_file $XBPS_COMMONDIR/environment/build_style/${build_style}.sh }