wok-current view lshw/receipt @ rev 24538
updated fbcat (0.5.1 -> 0.5.2)
author | Hans-G?nter Theisgen |
---|---|
date | Wed Feb 23 15:14:49 2022 +0100 (2022-02-23) |
parents | b8a0201a8b10 |
children | bc2b9d9bed6f |
line source
1 # SliTaz package receipt.
3 PACKAGE="lshw"
4 VERSION="B.02.18"
5 CATEGORY="system-tools"
6 SHORT_DESC="Hardware Lister."
7 MAINTAINER="erjo@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="https://ezix.org/project/wiki/HardwareLiSter"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="https://ezix.org/software/files/$TARBALL"
14 DEPENDS="gcc-lib-base"
16 # What is the latest version available today?
17 current_version()
18 {
19 wget -O - ${WGET_URL%/*} 2>/dev/null | \
20 sed '/lshw-/!d;s|.*lshw-||;s|.tar.*||' | sort -Vr | sed q
21 }
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 cd $PACKAGE-$VERSION
27 sed -i 's/hwNode::hwNode/hwNode/' src/core/scsi.cc
28 grep -qs 'define u8' src/core/scsi.cc src/core/burner.cc ||
29 sed -i 's|#include <scsi/scsi.h>|#define u8 __u8\n&|' \
30 src/core/scsi.cc src/core/burner.cc
32 make -j 1 &&
33 make DESTDIR=$DESTDIR install
34 }
36 # Rules to gen a SliTaz package suitable for Tazpkg.
37 genpkg_rules()
38 {
39 mkdir -p $fs/usr/share
41 cp -a $install/usr/sbin $fs/usr
42 cp -a $install/usr/share/lshw $fs/usr/share
43 }