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/packages/readline/default.bash
2013-07-13 17:19:22 +01:00

60 lines
913 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 "$cfg_package_spec_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
}