Commit c67729af authored by Allan McRae's avatar Allan McRae
Browse files

makechrootpkg - understand makepkg source syntax



The source line in a PKGBUILD can have a structure like
source=(´filename::url´).

Signed-off-by: default avatarAllan McRae <allan@archlinux.org>
parent 9dd60741
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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