summaryrefslogtreecommitdiff
path: root/makechrootpkg
diff options
context:
space:
mode:
authorAaron Griffin <aaronmgriffin@gmail.com>2009-12-16 10:54:59 -0800
committerAaron Griffin <aaronmgriffin@gmail.com>2009-12-16 10:54:59 -0800
commit0c17e0d9fcef4331551bceedd847245bef33e311 (patch)
tree20da2e4416ce56bbe2bc7625cc1b9c8ee8ade22f /makechrootpkg
parent6922cc39f0618efa41854cb74d26f82d5aa7a3b4 (diff)
downloaddevtools32-0c17e0d9fcef4331551bceedd847245bef33e311.tar.xz
Use the host's SRCDEST and PKGDEST if defined
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com> Original-by: Eric BĂ©langer <snowmaniscool@gmail.com>
Diffstat (limited to 'makechrootpkg')
-rwxr-xr-xmakechrootpkg4
1 files changed, 4 insertions, 0 deletions
diff --git a/makechrootpkg b/makechrootpkg
index 5095425..032e6f7 100755
--- a/makechrootpkg
+++ b/makechrootpkg
@@ -150,6 +150,10 @@ if [ "$REPACK" != "1" ]; then
rm -rf "$uniondir/build/"*
fi
+# Get SRC/PKGDEST from makepkg.conf
+SRCDEST=$(grep '^SRCDEST=' /etc/makepkg.conf | cut -d= -f2)
+PKGDEST=$(grep '^PKGDEST=' /etc/makepkg.conf | cut -d= -f2)
+
[ -d "$uniondir/pkgdest" ] || mkdir "$uniondir/pkgdest"
if ! grep "PKGDEST=/pkgdest" "$uniondir/etc/makepkg.conf" >/dev/null 2>&1; then
echo "Setting PKGDEST in makepkg.conf"