wok-6.x view lshw/receipt @ rev 23875

Up alpine (2.23), ansible (2.9.10), wordpress (5.4.2)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Jun 27 16:47:12 2020 +0000 (2020-06-27)
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 }