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/i2c-tools/default.bash
2015-11-03 14:28:22 +00:00

34 lines
492 B
Bash

version=\
(
'3.1.0'
)
git_tag="$(echo $version | sed 's/\./-/g')"
url=\
(
"https://github.com/groeck/i2c-tools/archive/V$git_tag.tar.gz"
)
md5=\
(
'7ed75853fe3c3dfd2d0d70d5831abfef'
)
maintainer=\
(
'Ricardo Martins <rasm@fe.up.pt>'
)
build()
{
$cmd_make -C "../i2c-tools-$git_tag" CC="$cmd_target_cc"
}
target_install()
{
for t in i2cdetect i2cget i2cset; do
$cmd_target_strip "../i2c-tools-$git_tag/tools/$t" -o "$cfg_dir_rootfs/usr/bin/$t"
done
}