wok-current annotate lshw/receipt @ rev 24614

Update some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Mar 06 21:04:14 2022 +0000 (2022-03-06)
parents ede1d184d5c5
children 7fb34513be29
rev   line source
erjo@506 1 # SliTaz package receipt.
erjo@506 2
erjo@506 3 PACKAGE="lshw"
Hans-G?nter@21378 4 VERSION="B.02.18"
erjo@506 5 CATEGORY="system-tools"
Hans-G?nter@21378 6 SHORT_DESC="Hardware Lister."
erjo@784 7 MAINTAINER="erjo@slitaz.org"
pascal@15379 8 LICENSE="GPL2"
Hans-G?nter@21378 9 WEB_SITE="https://ezix.org/project/wiki/HardwareLiSter"
Hans-G?nter@21378 10
erjo@506 11 TARBALL="$PACKAGE-$VERSION.tar.gz"
pascal@20671 12 WGET_URL="https://ezix.org/software/files/$TARBALL"
erjo@506 13
pascal@15379 14 DEPENDS="gcc-lib-base"
pascal@15379 15
pascal@24447 16 # What is the latest version available today?
pascal@24447 17 current_version()
pascal@24447 18 {
pascal@24614 19 wget -O - https://ezix.org/src/pkg/lshw/tags 2>/dev/null | \
pascal@24614 20 sed '/src\/tag/!d;s|.*">||;s|<.*||;q'
pascal@24447 21 }
pascal@24447 22
erjo@506 23 # Rules to configure and make the package.
erjo@506 24 compile_rules()
erjo@506 25 {
Hans-G?nter@21378 26 cd $PACKAGE-$VERSION
pascal@5732 27 sed -i 's/hwNode::hwNode/hwNode/' src/core/scsi.cc
pascal@6113 28 grep -qs 'define u8' src/core/scsi.cc src/core/burner.cc ||
pascal@6113 29 sed -i 's|#include <scsi/scsi.h>|#define u8 __u8\n&|' \
pascal@6113 30 src/core/scsi.cc src/core/burner.cc
Hans-G?nter@21378 31
Hans-G?nter@21378 32 make -j 1 &&
pascal@15379 33 make DESTDIR=$DESTDIR install
erjo@506 34 }
erjo@506 35
erjo@506 36 # Rules to gen a SliTaz package suitable for Tazpkg.
erjo@506 37 genpkg_rules()
erjo@506 38 {
erjo@506 39 mkdir -p $fs/usr/share
Hans-G?nter@21378 40
Hans-G?nter@21378 41 cp -a $install/usr/sbin $fs/usr
Hans-G?nter@21378 42 cp -a $install/usr/share/lshw $fs/usr/share
erjo@506 43 }