wok view lshw/receipt @ rev 23220
gaupol: python2 replaced by python3
author | Hans-G?nter Theisgen |
---|---|
date | Mon Mar 23 13:55:45 2020 +0100 (2020-03-23) |
parents | 6e8b1bcb30e2 |
children | ede1d184d5c5 |
line source
1 # SliTaz package receipt.
3 PACKAGE="lshw"
4 VERSION="B.02.18"
5 CATEGORY="system-tools"
6 SHORT_DESC="Hardware Lister."
7 MAINTAINER="erjo@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="https://ezix.org/project/wiki/HardwareLiSter"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="https://ezix.org/software/files/$TARBALL"
14 DEPENDS="gcc-lib-base"
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 cd $PACKAGE-$VERSION
20 sed -i 's/hwNode::hwNode/hwNode/' src/core/scsi.cc
21 grep -qs 'define u8' src/core/scsi.cc src/core/burner.cc ||
22 sed -i 's|#include <scsi/scsi.h>|#define u8 __u8\n&|' \
23 src/core/scsi.cc src/core/burner.cc
25 make -j 1 &&
26 make DESTDIR=$DESTDIR install
27 }
29 # Rules to gen a SliTaz package suitable for Tazpkg.
30 genpkg_rules()
31 {
32 mkdir -p $fs/usr/share
34 cp -a $install/usr/sbin $fs/usr
35 cp -a $install/usr/share/lshw $fs/usr/share
36 }