# 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 |#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 }