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/src/pkg/lshw/tags 2>/dev/null | \
    sed '/src\/tag/!d;s|.*">||;s|<.*||;q'
}

# 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
}
6025 packages and 203154 files in current database (Thu Apr 25 06:17:47 2024)