wok-6.x annotate lshw/receipt @ rev 25466
Update some web_site
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Oct 01 09:32:27 2022 +0000 (2022-10-01) |
parents | bc2b9d9bed6f |
children |
rev | line source |
---|---|
erjo@506 | 1 # SliTaz package receipt. |
erjo@506 | 2 |
erjo@506 | 3 PACKAGE="lshw" |
Hans-G?nter@24863 | 4 VERSION="B.02.19.2" |
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 { |
pascal@5732 | 26 sed -i 's/hwNode::hwNode/hwNode/' src/core/scsi.cc |
pascal@6113 | 27 grep -qs 'define u8' src/core/scsi.cc src/core/burner.cc || |
pascal@6113 | 28 sed -i 's|#include <scsi/scsi.h>|#define u8 __u8\n&|' \ |
pascal@6113 | 29 src/core/scsi.cc src/core/burner.cc |
Hans-G?nter@21378 | 30 |
Hans-G?nter@24863 | 31 make && |
Hans-G?nter@24863 | 32 make install DESTDIR=$DESTDIR |
erjo@506 | 33 } |
erjo@506 | 34 |
erjo@506 | 35 # Rules to gen a SliTaz package suitable for Tazpkg. |
erjo@506 | 36 genpkg_rules() |
erjo@506 | 37 { |
Hans-G?nter@24863 | 38 cook_copy_folders sbin |
Hans-G?nter@24863 | 39 cook_copy_folders lshw |
erjo@506 | 40 } |