wok annotate lshw/receipt @ rev 11494

Up: poppler 0.18.2; poppler-data 0.4.5 (fix build of epdfview; thank godane)
author Antoine Bodin <gokhlayeh@slitaz.org>
date Mon Dec 19 02:49:30 2011 +0100 (2011-12-19)
parents a203800d06c7
children 2a5cc8208d36
rev   line source
erjo@506 1 # SliTaz package receipt.
erjo@506 2
erjo@506 3 PACKAGE="lshw"
slaxemulator@6648 4 VERSION="B.02.15"
erjo@506 5 CATEGORY="system-tools"
erjo@506 6 SHORT_DESC="Hardware Lister"
erjo@784 7 MAINTAINER="erjo@slitaz.org"
pascal@5003 8 DEPENDS="gcc-lib-base"
erjo@506 9 TARBALL="$PACKAGE-$VERSION.tar.gz"
erjo@506 10 WEB_SITE="http://ezix.org/project/wiki/HardwareLiSter"
erjo@506 11 WGET_URL="http://ezix.org/software/files/$TARBALL"
erjo@506 12
erjo@506 13 # Rules to configure and make the package.
erjo@506 14 compile_rules()
erjo@506 15 {
erjo@506 16 cd $src
pascal@5732 17 sed -i 's/hwNode::hwNode/hwNode/' src/core/scsi.cc
pascal@6113 18 grep -qs 'define u8' src/core/scsi.cc src/core/burner.cc ||
pascal@6113 19 sed -i 's|#include <scsi/scsi.h>|#define u8 __u8\n&|' \
pascal@6113 20 src/core/scsi.cc src/core/burner.cc
pascal@5003 21 make &&
erjo@506 22 make DESTDIR=$PWD/_pkg install
erjo@506 23 }
erjo@506 24
erjo@506 25 # Rules to gen a SliTaz package suitable for Tazpkg.
erjo@506 26 genpkg_rules()
erjo@506 27 {
erjo@506 28 mkdir -p $fs/usr/share
erjo@506 29 cp -a $_pkg/usr/sbin $fs/usr
erjo@506 30 cp -a $_pkg/usr/share/lshw $fs/usr/share
erjo@506 31 }
erjo@506 32