xbps-src: make sure that wrksrc is expanded after reading build-options.

This commit is contained in:
Juan RP 2014-03-27 10:06:27 +01:00
parent 1041068b76
commit f6f59dec8b

View file

@ -309,13 +309,6 @@ setup_pkg() {
fi
fi
# Setup some specific package vars.
if [ -z "$wrksrc" ]; then
wrksrc="$XBPS_BUILDDIR/${sourcepkg}-${version}"
else
wrksrc="$XBPS_BUILDDIR/$wrksrc"
fi
FILESDIR=$XBPS_SRCPKGDIR/$sourcepkg/files
PATCHESDIR=$XBPS_SRCPKGDIR/$sourcepkg/patches
DESTDIR=$XBPS_DESTDIR/$XBPS_CROSS_TRIPLET/${sourcepkg}-${version}
@ -378,6 +371,13 @@ setup_pkg() {
set_build_options
# Setup some specific package vars.
if [ -z "$wrksrc" ]; then
wrksrc="$XBPS_BUILDDIR/${sourcepkg}-${version}"
else
wrksrc="$XBPS_BUILDDIR/$wrksrc"
fi
}
setup_pkg_depends() {