summaryrefslogtreecommitdiffstats
path: root/makechrootpkg
diff options
context:
space:
mode:
authorPierre Schmitz <pierre@archlinux.de>2010-08-20 11:55:33 +0200
committerPierre Schmitz <pierre@archlinux.de>2010-08-20 11:55:33 +0200
commitae5083fc118c6a708eec7f7c357ce8363eb2d78a (patch)
treec29d6c1f9618404e8e93e20215e82e2fd43656f2 /makechrootpkg
parent6f4e865ff99f9658797e069dcb2e6ea454aaf240 (diff)
downloaddevtools-ae5083fc118c6a708eec7f7c357ce8363eb2d78a.tar.gz
devtools-ae5083fc118c6a708eec7f7c357ce8363eb2d78a.tar.xz
source PKGBUILD before evaluating install and changelog files
This makes it possible to use e.g. install=$pkgname.install
Diffstat (limited to 'makechrootpkg')
-rwxr-xr-xmakechrootpkg2
1 files changed, 2 insertions, 0 deletions
diff --git a/makechrootpkg b/makechrootpkg
index c73b468..572a215 100755
--- a/makechrootpkg
+++ b/makechrootpkg
@@ -179,6 +179,7 @@ for f in ${source[@]}; do
fi
done
+( . PKGBUILD
for i in 'changelog' 'install'; do
filelist=$(sed -n "s/^[[:space:]]*$i=//p" PKGBUILD)
for file in $filelist; do
@@ -189,6 +190,7 @@ for i in 'changelog' 'install'; do
fi
done
done
+)
chown -R nobody "$copydir/build"
chown -R nobody "$copydir/srcdest"