diff options
author | Allan McRae <allan@archlinux.org> | 2009-09-01 22:27:19 +1000 |
---|---|---|
committer | Allan McRae <allan@archlinux.org> | 2009-09-01 22:27:19 +1000 |
commit | f9aa28f89595ff168f9e426cec304d76fef3a266 (patch) | |
tree | 7dbf77baa880f5261c51eec0c806b6f31de7a59f | |
parent | 30aab9b93655fa42e3e99c3390c1dfbece37d76f (diff) | |
download | devtools32-f9aa28f89595ff168f9e426cec304d76fef3a266.tar.xz |
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>
-rwxr-xr-x | makechrootpkg | 7 |
1 files changed, 7 insertions, 0 deletions
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 |