From c67729af9860d925f2b8fe91e73fad3218c74fb2 Mon Sep 17 00:00:00 2001 From: Allan McRae Date: Sat, 31 Jan 2009 20:26:45 +1000 Subject: makechrootpkg - understand makepkg source syntax MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The source line in a PKGBUILD can have a structure like source=(´filename::url´). Signed-off-by: Allan McRae --- makechrootpkg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'makechrootpkg') 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 -- cgit v1.2.3-24-g4f1b