[pacman-dev] [PATCH] Make 'SRCDEST', 'PKGDEST' and 'PKGSRCDEST' respect the 'BUILDDIR'
Techlive Zheng
techlivezheng at gmail.com
Mon May 27 12:07:33 EDT 2013
---
A task has also been added to the bugtracker:
https://bugs.archlinux.org/task/35498
scripts/makepkg.sh.in | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/scripts/makepkg.sh.in b/scripts/makepkg.sh.in
index b85b87e..c27c74d 100644
--- a/scripts/makepkg.sh.in
+++ b/scripts/makepkg.sh.in
@@ -2790,7 +2790,15 @@ if [[ $BUILDDIR = "$startdir" ]]; then
else
srcdir="$BUILDDIR/$pkgbase/src"
pkgdirbase="$BUILDDIR/$pkgbase/pkg"
-
+ if [[ $SRCDEST = "$startdir" ]]; then
+ SRCDEST="$BUILDDIR/$pkgbase"
+ fi
+ if [[ $PKGDEST = "$startdir" ]]; then
+ PKGDEST="$BUILDDIR/$pkgbase"
+ fi
+ if [[ $SRCPKGDEST = "$startdir" ]]; then
+ SRCPKGDEST="$BUILDDIR/$pkgbase"
+ fi
fi
# set pkgdir to something "sensible" for (not recommended) use during build()
--
1.8.2.3
More information about the pacman-dev
mailing list