wok-6.x view i2c-tools/receipt @ rev 24873

updated lynis (3.0.6 -> 3.0.7)
author Hans-G?nter Theisgen
date Thu Mar 31 07:46:22 2022 +0100 (2022-03-31)
parents 71360a13cd94
children
line source
1 # SliTaz package receipt.
3 PACKAGE="i2c-tools"
4 VERSION="4.3"
5 CATEGORY="system-tools"
6 SHORT_DESC="The i2c-tools provide a heterogeneous set of I2C tools for Linux."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="https://i2c.wiki.kernel.org/index.php/I2C_Tools"
11 TARBALL="$PACKAGE-$VERSION.tar.xz"
12 WGET_URL="https://mirrors.edge.kernel.org/pub/software/utils/$PACKAGE/$TARBALL"
14 DEPENDS="perl"
16 HOST_ARCH="i486 arm"
18 # What is the latest version available today?
19 current_version()
20 {
21 wget -O - ${WGET_URL%/*} 2>/dev/null | \
22 sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
23 }
25 # Rules to configure and make the package.
26 compile_rules()
27 {
28 sed -i s"#^prefix =.*#prefix = /usr#" Makefile &&
30 make &&
31 make install \
32 PREFIX=/usr \
33 DESTDIR=$DESTDIR
34 }
36 # Rules to gen a SliTaz package suitable for Tazpkg.
37 genpkg_rules()
38 {
39 cook_copy_folders bin
40 cook_copy_folders sbin
41 cook_copy_files *.so*
42 }