This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
lsts_glued/rules/readline/default.bash
2014-02-04 07:44:17 +00:00

60 lines
900 B
Bash

version=\
(
'6.2'
)
revision=\
(
'1'
)
url=\
(
"ftp://ftp.gnu.org/gnu/readline/readline-$version.tar.gz"
)
md5=\
(
'67948acb2ca081f23359d0256e9a271c'
)
maintainer=\
(
'Ricardo Martins <rasm@fe.up.pt>'
)
post_unpack()
{
patches=$(ls "$pkg_dir/patches/"*.patch)
if [ -n "$patches" ]; then
cat $patches | patch -p0
fi
}
configure()
{
"../readline-$version/configure" \
--prefix="$cfg_dir_toolchain_sysroot/usr" \
--target="$cfg_target_canonical" \
--host="$cfg_target_canonical" \
--build="$cfg_host_canonical"
}
build()
{
$cmd_make
}
host_install()
{
$cmd_make install
}
target_install()
{
for lib in history readline; do
install "$cfg_dir_toolchain_sysroot/usr/lib/lib$lib.so"* "$cfg_dir_rootfs/usr/lib"
$cmd_target_strip --strip-unneeded "$cfg_dir_rootfs/usr/lib/lib$lib.so"*
done
}