SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "lshw"

# SliTaz package receipt.

PACKAGE="lshw"
VERSION="B.02.15"
CATEGORY="system-tools"
SHORT_DESC="Hardware Lister"
MAINTAINER="erjo@slitaz.org"
DEPENDS="gcc-lib-base"
TARBALL="$PACKAGE-$VERSION.tar.gz"
WEB_SITE="http://ezix.org/project/wiki/HardwareLiSter"
WGET_URL="http://ezix.org/software/files/$TARBALL"

# Rules to configure and make the package.
compile_rules()
{
    cd $src
    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 DESTDIR=$PWD/_pkg install
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    mkdir -p $fs/usr/share
    cp -a $_pkg/usr/sbin $fs/usr
    cp -a $_pkg/usr/share/lshw $fs/usr/share
}

3382 packages and 430813 files in stable database (Mon Mar 4 17:53:49 2019)