wok view sysfsutils/receipt @ rev 25607

Update some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Jul 19 13:00:59 2023 +0000 (10 months ago)
parents 65ff25c4de90
children
line source
1 # SliTaz package receipt.
3 PACKAGE="sysfsutils"
4 VERSION="2.1.0"
5 CATEGORY="system-tools"
6 SHORT_DESC="Utilities built upon sysfs."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL2 LGPL2.1"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="https://linux-diag.sourceforge.net/Sysfsutils.html"
11 WGET_URL="$SF_MIRROR/linux-diag/$TARBALL"
13 DEPENDS="linux"
15 # What is the latest version available today?
16 current_version()
17 {
18 wget -O - https://sourceforge.net/projects/linux-diag/files/sysfsutils/ 2>/dev/null | \
19 sed '/scope="row/!d;s|.*a href="|"https://sourceforge.net|;s| .*||;q' | xargs wget -O - 2>/dev/null | \
20 sed "/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|;q"
21 }
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 ./configure --prefix=/usr --infodir=/usr/share/info \
27 --mandir=/usr/share/man $CONFIGURE_ARGS
28 make
29 make DESTDIR=$DESTDIR install
30 }
32 # Rules to gen a SliTaz package suitable for Tazpkg.
33 genpkg_rules()
34 {
35 mkdir -p $fs/usr/lib
36 cp -a $install/usr/bin $fs/usr
37 cp -a $install/usr/lib/*.so* $fs/usr/lib
38 }