gnu-config: added package to install config.sub and config.guess.

This commit is contained in:
Ricardo Martins 2013-07-13 22:28:53 +01:00
parent bac77ab7ad
commit f0a705b8f2
3 changed files with 36 additions and 2 deletions

View File

@ -109,8 +109,14 @@ unpack()
let n++
done
find "$cfg_dir_builds/$PKG" -name config.sub -exec install -v -m 0755 "$cfg_dir_downloads"/config.sub '{}' \;
find "$cfg_dir_builds/$PKG" -name config.guess -exec install -v -m 0755 "$cfg_dir_downloads"/config.guess '{}' \;
dir_gnu_cfg="$cfg_dir_toolchain/share/gnu-config"
if [ "$cfg_dir_cfg/config.sub" ]; then
find "$cfg_dir_builds/$PKG" -name config.sub -exec install -v -m 0755 "$dir_gnu_cfg/config.sub" '{}' \;
fi
if [ "$cfg_dir_cfg/config.guess" ]; then
find "$cfg_dir_builds/$PKG" -name config.guess -exec install -v -m 0755 "$dir_gnu_cfg/config.guess" '{}' \;
fi
return 0
}

View File

@ -10,6 +10,7 @@ maintainer=\
requires=\
(
'gnu-config/host'
'bzip2/host'
'xz/host'
'zip/host'

27
packages/gnu-config/host.bash Executable file
View File

@ -0,0 +1,27 @@
version=\
(
'1.0'
)
url=\
(
"http://www.lsts.pt/glued/gnu-config-$version.tar.bz2"
)
md5=\
(
'6bd074b651c9145466532bd8786fbb30'
)
maintainer=\
(
'Ricardo Martins <rasm@fe.up.pt>'
)
host_install()
{
dir="$cfg_dir_toolchain/share/gnu-config"
$cmd_mkdir "$dir" &&
cp -v "../gnu-config-$version/config.sub" "$dir" &&
cp -v "../gnu-config-$version/config.guess" "$dir"
}