Added rlwrap.

This commit is contained in:
Nicolas JOURDEN 2017-05-29 11:03:04 +02:00 committed by Pedro Gonçalves
parent c362d134fb
commit 4ea2982346

44
rules/rlwrap/default.bash Normal file
View File

@ -0,0 +1,44 @@
version=\
(
"0.43"
)
url=\
(
"https://github.com/hanslub42/rlwrap/releases/download/v$version/rlwrap-$version.tar.gz"
)
md5=\
(
"b993e83d3a292464de70719b32f83a34"
)
requires=(
"readline/default"
)
configure()
{
./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()
{
$cmd_cp $cfg_dir_toolchain_sysroot/usr/share/rlwrap $cfg_dir_rootfs/usr/share/
$cmd_cp $cfg_dir_toolchain_sysroot/usr/bin/rlwrap $cfg_dir_rootfs/usr/bin/
}