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/termcap/default.bash

37 lines
668 B
Bash
Raw Normal View History

2014-06-28 13:28:17 +01:00
source "$pkg_common"
2013-07-13 17:19:22 +01:00
configure()
{
./configure \
--prefix="$cfg_dir_toolchain_sysroot/usr" \
--target="$cfg_target_canonical" \
--host="$cfg_target_canonical" \
--build="$cfg_host_canonical" \
--enable-shared
}
build()
{
$cmd_make
}
host_install()
{
$cmd_make install
}
target_install()
{
2014-06-28 13:28:17 +01:00
# Libs:
2013-07-13 17:19:22 +01:00
for f in "$cfg_dir_toolchain_sysroot/usr/lib/"libtermcap*; do
if [ -L "$f" ]; then
$cmd_cp "$f" "$cfg_dir_rootfs/usr/lib"
else
$cmd_target_strip -v "$f" -o "$cfg_dir_rootfs/usr/lib/$(basename "$f")"
fi
done
# Terminfo:
$cmd_cp "$cfg_dir_toolchain_sysroot/usr/share/terminfo" "$cfg_dir_rootfs/usr/share/"
}