summaryrefslogtreecommitdiff
path: root/makechrootpkg
diff options
context:
space:
mode:
Diffstat (limited to 'makechrootpkg')
-rwxr-xr-xmakechrootpkg11
1 files changed, 8 insertions, 3 deletions
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/"