From f9aa28f89595ff168f9e426cec304d76fef3a266 Mon Sep 17 00:00:00 2001 From: Allan McRae Date: Tue, 1 Sep 2009 22:27:19 +1000 Subject: makechrootpkg: fixed copying of .install files to chroot for split packages MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Patch-by: Eric BĂ©langer Signed-off-by: Allan McRae --- makechrootpkg | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/makechrootpkg b/makechrootpkg index 4050ec4..91f21de 100755 --- a/makechrootpkg +++ b/makechrootpkg @@ -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 -- cgit v1.2.3-70-g09d2