From f659a5081ef38c010999c150739f0cd07ea27872 Mon Sep 17 00:00:00 2001 From: maxice8 Date: Tue, 19 Mar 2019 19:53:25 -0300 Subject: xgensum: try to source the environment for the build-style as well. Closes: #128 [via git-merge-pr] --- xgensum | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'xgensum') diff --git a/xgensum b/xgensum index d744b4e..58b57e8 100755 --- a/xgensum +++ b/xgensum @@ -28,6 +28,11 @@ fi . "$template" +# Try to source the build-style as well. This is required for R-cran packages. +if [ -f ${XBPS_DISTDIR}/common/environment/build-style/${build_style}.sh ]; then + . ${XBPS_DISTDIR}/common/environment/build-style/${build_style}.sh +fi + XBPS_SRCDISTDIR=$($XBPS_DISTDIR/xbps-src show-var XBPS_SRCDISTDIR | tail -1) srcdir="$XBPS_SRCDISTDIR/$pkgname-$version" -- cgit 1.4.1