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

47 lines
990 B
Bash
Raw Permalink Normal View History

2013-07-13 17:19:22 +01:00
version=\
(
'0.4.0-rc1'
)
url=\
(
"http://www.lsts.pt/glued/trex-$version-Linux.tar.gz"
)
md5=\
(
'9de8dcc4d7e6053100c5de2b29a5362c'
)
maintainer=\
(
'José Pinto <zepinto@fe.up.pt>'
)
target_install()
{
rm -rf "$cfg_dir_rootfs/opt/lsts/trex"
$cmd_mkdir "$cfg_dir_rootfs/opt/lsts" &&
cp -rav "../trex-$version-Linux/shared/trex" "$cfg_dir_rootfs/opt/lsts" &&
$cmd_mkdir "$cfg_dir_rootfs/opt/lsts/trex/lib"
base="../trex-$version-Linux/lib"
for f in "$base/"*.so*; do
dst="$cfg_dir_rootfs/opt/lsts/trex/lib/$(basename "$f")"
cp -v -d "$f" "$dst" &&
$cmd_target_strip "$dst"
done &&
$cmd_mkdir "$cfg_dir_rootfs/opt/lsts/trex/bin"
for f in "../trex-$version-Linux/bin/"*; do
dst="$cfg_dir_rootfs/opt/lsts/trex/bin/$(basename "$f")"
cp -v -d "$f" "$dst" &&
$cmd_target_strip "$dst"
done &&
tar -C "$pkg_dir/fs" --exclude .svn -c -f - . | tar -C "$cfg_dir_rootfs" -x -v -f -
2013-07-13 17:19:22 +01:00
}