SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "lshw"

# SliTaz package receipt.

PACKAGE="lshw"
VERSION="B.02.19.2"
CATEGORY="system-tools"
SHORT_DESC="Hardware Lister."
MAINTAINER="erjo@slitaz.org"
LICENSE="GPL2"
WEB_SITE="https://ezix.org/project/wiki/HardwareLiSter"

TARBALL="$PACKAGE-$VERSION.tar.gz"
WGET_URL="https://ezix.org/software/files/$TARBALL"

DEPENDS="gcc-lib-base"

# What is the latest version available today?
current_version()
{
    wget -O - https://ezix.org/software/files/ 2>/dev/null | \
    sed '/lshw-B/!d;s|.*lshw-||;s|.tar.*||' | tail -n1
}

# Rules to configure and make the package.
compile_rules()
{
    sed -i 's/hwNode::hwNode/hwNode/' src/core/scsi.cc
    grep -qs 'define u8' src/core/scsi.cc src/core/burner.cc ||
    sed -i 's|#include <scsi/scsi.h>|#define u8 __u8\n&|' \
        src/core/scsi.cc src/core/burner.cc

    make &&
    make install DESTDIR=$DESTDIR
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    cook_copy_folders    sbin
    cook_copy_folders    lshw
}
5935 packages and 845883 files in cooking database (Thu Jun 27 00:01:54 2024)