xbps-src: add environment/build_style to set env vars for build_styles.
This commit is contained in:
parent
81aff8634d
commit
3adb1c5c6b
|
@ -83,9 +83,12 @@ if [ ! -f $XBPS_SUBPKG_INSTALL_DONE ]; then
|
||||||
for f in ${XBPS_COMMONDIR}/environment/setup-subpkg/*.sh; do
|
for f in ${XBPS_COMMONDIR}/environment/setup-subpkg/*.sh; do
|
||||||
source_file "$f"
|
source_file "$f"
|
||||||
done
|
done
|
||||||
|
|
||||||
${PKGNAME}_package
|
${PKGNAME}_package
|
||||||
pkgname=$PKGNAME
|
pkgname=$PKGNAME
|
||||||
|
|
||||||
|
source_file $XBPS_COMMONDIR/environment/build_style/${build_style}.sh
|
||||||
|
|
||||||
install -d $PKGDESTDIR
|
install -d $PKGDESTDIR
|
||||||
if declare -f pkg_install >/dev/null; then
|
if declare -f pkg_install >/dev/null; then
|
||||||
export XBPS_PKGDESTDIR=1
|
export XBPS_PKGDESTDIR=1
|
||||||
|
|
|
@ -37,10 +37,12 @@ if [ "$sourcepkg" != "$PKGNAME" ]; then
|
||||||
for f in ${XBPS_COMMONDIR}/environment/setup-subpkg/*.sh; do
|
for f in ${XBPS_COMMONDIR}/environment/setup-subpkg/*.sh; do
|
||||||
source_file "$f"
|
source_file "$f"
|
||||||
done
|
done
|
||||||
|
|
||||||
${PKGNAME}_package
|
${PKGNAME}_package
|
||||||
pkgname=$PKGNAME
|
pkgname=$PKGNAME
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
source_file $XBPS_COMMONDIR/environment/build_style/${build_style}.sh
|
||||||
setup_pkg_depends $pkgname
|
setup_pkg_depends $pkgname
|
||||||
run_pkg_hooks pre-pkg
|
run_pkg_hooks pre-pkg
|
||||||
touch -f $XBPS_PREPKG_DONE
|
touch -f $XBPS_PREPKG_DONE
|
||||||
|
|
|
@ -406,4 +406,6 @@ setup_pkg() {
|
||||||
export XBPS_STATEDIR="${XBPS_BUILDDIR}/.xbps-${sourcepkg}"
|
export XBPS_STATEDIR="${XBPS_BUILDDIR}/.xbps-${sourcepkg}"
|
||||||
export XBPS_WRAPPERDIR="${XBPS_STATEDIR}/wrappers"
|
export XBPS_WRAPPERDIR="${XBPS_STATEDIR}/wrappers"
|
||||||
mkdir -p $XBPS_WRAPPERDIR
|
mkdir -p $XBPS_WRAPPERDIR
|
||||||
|
|
||||||
|
source_file $XBPS_COMMONDIR/environment/build_style/${build_style}.sh
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue