wok-current view lshw/receipt @ rev 25685

Add checkspace / fetchall feature for tazpkg
author Stanislas Leduc <shann@slitaz.org>
date Thu Mar 14 20:28:39 2024 +0000 (8 months ago)
parents bc2b9d9bed6f
children
line source
1 # SliTaz package receipt.
3 PACKAGE="lshw"
4 VERSION="B.02.19.2"
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 - https://ezix.org/src/pkg/lshw/tags 2>/dev/null | \
20 sed '/src\/tag/!d;s|.*">||;s|<.*||;q'
21 }
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 sed -i 's/hwNode::hwNode/hwNode/' src/core/scsi.cc
27 grep -qs 'define u8' src/core/scsi.cc src/core/burner.cc ||
28 sed -i 's|#include <scsi/scsi.h>|#define u8 __u8\n&|' \
29 src/core/scsi.cc src/core/burner.cc
31 make &&
32 make install DESTDIR=$DESTDIR
33 }
35 # Rules to gen a SliTaz package suitable for Tazpkg.
36 genpkg_rules()
37 {
38 cook_copy_folders sbin
39 cook_copy_folders lshw
40 }