makechrootpkg: fixed copying of .install files to chroot for split packages

Patch-by: Eric Bélanger <eric@archlinux.org>
Signed-off-by: Allan McRae <allan@archlinux.org>
This commit is contained in:
Allan McRae 2009-09-01 22:27:19 +10:00
parent 30aab9b936
commit f9aa28f895
1 changed files with 7 additions and 0 deletions

View File

@ -183,6 +183,13 @@ for f in ${source[@]}; do
done
install_files=$(grep "install=" PKGBUILD)
for pkg in ${pkgname[@]}; do
install_files+=' '
install_files+=$(echo $install_files |sed "s/\$pkgname/$pkg/"|sed "s/\${pkgname}/$pkg/")
done
install_files=$(eval echo $install_files |tr '[:blank:]' '\n'|sort |uniq)
for f in $install_files;do
install="${f#"install="}"
if [ "$install" != "" -a -f "$install" ]; then