wok annotate i2c-tools/receipt @ rev 25705

fusecloop/extract_compressed_fs: can convert to v0.68 or v1.0
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Jun 22 12:48:49 2024 +0000 (4 months ago)
parents 71360a13cd94
children
rev   line source
pankso@16391 1 # SliTaz package receipt.
pankso@16391 2
pankso@16391 3 PACKAGE="i2c-tools"
Hans-G?nter@24651 4 VERSION="4.3"
pankso@16391 5 CATEGORY="system-tools"
Hans-G?nter@21038 6 SHORT_DESC="The i2c-tools provide a heterogeneous set of I2C tools for Linux."
pankso@16391 7 MAINTAINER="pankso@slitaz.org"
pankso@16391 8 LICENSE="GPL2"
pascal@20673 9 WEB_SITE="https://i2c.wiki.kernel.org/index.php/I2C_Tools"
Hans-G?nter@21038 10
Hans-G?nter@21038 11 TARBALL="$PACKAGE-$VERSION.tar.xz"
Hans-G?nter@21038 12 WGET_URL="https://mirrors.edge.kernel.org/pub/software/utils/$PACKAGE/$TARBALL"
Hans-G?nter@21038 13
Hans-G?nter@24651 14 DEPENDS="perl"
Hans-G?nter@24651 15
pankso@16391 16 HOST_ARCH="i486 arm"
pankso@16391 17
pascal@24336 18 # What is the latest version available today?
pascal@24336 19 current_version()
pascal@24336 20 {
pascal@24336 21 wget -O - ${WGET_URL%/*} 2>/dev/null | \
pascal@24336 22 sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
pascal@24336 23 }
pascal@24336 24
pankso@16391 25 # Rules to configure and make the package.
pankso@16391 26 compile_rules()
pankso@16391 27 {
pankso@16391 28 sed -i s"#^prefix =.*#prefix = /usr#" Makefile &&
Hans-G?nter@21038 29
Hans-G?nter@24651 30 make &&
Hans-G?nter@24651 31 make install \
Hans-G?nter@24651 32 PREFIX=/usr \
Hans-G?nter@24651 33 DESTDIR=$DESTDIR
pankso@16391 34 }
pankso@16391 35
pankso@16391 36 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@16391 37 genpkg_rules()
pankso@16391 38 {
Hans-G?nter@24651 39 cook_copy_folders bin
Hans-G?nter@24651 40 cook_copy_folders sbin
Hans-G?nter@24651 41 cook_copy_files *.so*
pankso@16391 42 }