wok annotate lm-sensors/receipt @ rev 24389

updated c-ares and c-ares-dev (1.15.0 -> 1.18.1)
author Hans-G?nter Theisgen
date Mon Feb 07 17:27:32 2022 +0100 (2022-02-07)
parents 5ea0ce1cecc0
children
rev   line source
pascal@8855 1 # SliTaz package receipt.
pascal@8855 2
pascal@8855 3 PACKAGE="lm-sensors"
Hans-G?nter@23140 4 VERSION="3.6.0"
pascal@8855 5 CATEGORY="system-tools"
pascal@8855 6 SHORT_DESC="Linux hardware monitoring."
pascal@8855 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@15001 8 LICENSE="GPL2"
Hans-G?nter@21371 9 WEB_SITE="https://hwmon.wiki.kernel.org/lm_sensors"
Hans-G?nter@21371 10
Hans-G?nter@21371 11 TARBALL="$PACKAGE-$VERSION.tar.gz"
Hans-G?nter@21372 12 WGET_URL="https://github.com/$PACKAGE/$PACKAGE/archive/V${VERSION//./-}.tar.gz"
Hans-G?nter@21371 13
pascal@8855 14 SUGGESTED="rrdtool"
Hans-G?nter@21371 15 DEPENDS="linux-hwmon perl"
pankso@13615 16 BUILD_DEPENDS="bison flex rrdtool-dev"
pankso@13615 17
pascal@24055 18 current_version()
pascal@24055 19 {
pascal@24299 20 wget -O - ${WGET_URL%/arch*}/tags 2>/dev/null | \
pascal@24055 21 sed '/archive.*tar/!d;s|.*/V\(.*\).tar.*|\1|;s|-|.|g;q'
pascal@24055 22 }
pascal@24055 23
pascal@8855 24 # Rules to configure and make the package.
pascal@8855 25 compile_rules()
pascal@8855 26 {
pascal@20212 27 sed -i 's|uname -m|echo i486|' Makefile
pascal@19291 28 sed -i 's|/man|/share&|' Makefile
Hans-G?nter@21371 29 # no longer required with kernel 3.16.55
Hans-G?nter@21371 30 # patch -p0 < $stuff/linux-3.0.patch &&
Hans-G?nter@21371 31
Hans-G?nter@21371 32 make install \
Hans-G?nter@21371 33 PREFIX=/usr \
Hans-G?nter@21371 34 PROG_EXTRA=sensord \
Hans-G?nter@21371 35 DESTDIR=$DESTDIR 2>&1 | \
Hans-G?nter@21371 36 sed 's/d: No such file/d: no such file/'
pascal@8855 37 }
pascal@8855 38
pascal@8855 39 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@8855 40 genpkg_rules()
pascal@8855 41 {
pascal@8855 42 mkdir -p $fs/usr/lib
Hans-G?nter@21371 43
Hans-G?nter@21371 44 cp -a $install/etc $fs
Hans-G?nter@21371 45 cp -a $install/usr/bin $fs/usr
Hans-G?nter@21371 46 cp -a $install/usr/sbin $fs/usr
Hans-G?nter@21371 47 cp -a $install/usr/lib/*.so* $fs/usr/lib
pascal@8855 48 }