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/screen/default.bash
Nicolas JOURDEN fa4ba223cf Added screen.
2017-06-01 15:18:37 +01:00

60 lines
878 B
Bash

version=\
(
"4.5.0"
)
url=\
(
"http://ftp.gnu.org/gnu/screen/screen-$version.tar.gz"
)
md5=\
(
"a32105a91359afab1a4349209a028e31"
)
requires=\
(
"ncurses/default"
)
post_unpack()
{
patches=$(ls "$pkg_dir"/patches/*.patch)
if [ -n "$patches" ]; then
cat $patches | patch -p1
fi
autoconf
aclocal
}
configure()
{
./configure \
--target="$cfg_target_canonical" \
--host="$cfg_target_canonical" \
--build="$cfg_host_canonical" \
--prefix="$cfg_dir_toolchain_sysroot/usr" \
--enable-colors256
}
build()
{
$cmd_make
}
host_install()
{
$cmd_make install
}
target_install()
{
$cmd_cp $cfg_dir_toolchain_sysroot/usr/share/screen $cfg_dir_rootfs/usr/share/
$cmd_cp $cfg_dir_toolchain_sysroot/usr/bin/screen-$version $cfg_dir_rootfs/usr/bin/screen
$cmd_cp etc/screenrc $cfg_dir_rootfs/etc/screenrc
}