index : devtools32 | |
Archlinux32 fork of devtools | gitolite user |
summaryrefslogtreecommitdiff |
-rwxr-xr-x | makechrootpkg | 11 |
diff --git a/makechrootpkg b/makechrootpkg index 2ae729e..5f5fb88 100755 --- a/makechrootpkg +++ b/makechrootpkg @@ -191,9 +191,14 @@ for f in ${source[@]}; do cp "$SRCDEST/$basef" "$uniondir/srcdest/" fi done -if [ "$install" != "" -a -f "$install" ]; then - cp "$install" "$uniondir/build/" -fi + +install_files=$(grep "install=" PKGBUILD) +for f in $install_files;do + install="${f#"install="}" + if [ "$install" != "" -a -f "$install" ]; then + cp "$install" "$uniondir/build/" + fi +done if [ -f "ChangeLog" ]; then cp ChangeLog "$uniondir/build/" |