summaryrefslogtreecommitdiffstats
path: root/makechrootpkg
diff options
context:
space:
mode:
authorAllan McRae <allan@archlinux.org>2009-01-31 11:26:45 +0100
committerAllan McRae <allan@archlinux.org>2009-01-31 11:28:32 +0100
commitc67729af9860d925f2b8fe91e73fad3218c74fb2 (patch)
tree4c3ba3341f9f668437a31488efc6ba7127e62288 /makechrootpkg
parent9dd60741bddfb9cd61d6665bffd2d1ea9b99513b (diff)
downloaddevtools-c67729af9860d925f2b8fe91e73fad3218c74fb2.tar.gz
devtools-c67729af9860d925f2b8fe91e73fad3218c74fb2.tar.xz
makechrootpkg - understand makepkg source syntax
The source line in a PKGBUILD can have a structure like source=(´filename::url´). Signed-off-by: Allan McRae <allan@archlinux.org>
Diffstat (limited to 'makechrootpkg')
-rwxr-xr-xmakechrootpkg2
1 files changed, 1 insertions, 1 deletions
diff --git a/makechrootpkg b/makechrootpkg
index a0ee98b..c335f69 100755
--- a/makechrootpkg
+++ b/makechrootpkg
@@ -172,7 +172,7 @@ chown -R nobody "$uniondir/pkgdest"
source PKGBUILD
cp PKGBUILD "$uniondir/build/"
for f in ${source[@]}; do
- basef=$(basename $f)
+ basef=$(echo $f | sed 's|::.*||' | sed 's|^.*://.*/||g')
if [ -f "$basef" ]; then
cp "$basef" "$uniondir/srcdest/"
fi