wok-current view lshw/receipt @ rev 24804
updated liblouis and liblouis-dev (3.13.0 -> 3.21.0)
author | Hans-G?nter Theisgen |
---|---|
date | Tue Mar 22 10:57:54 2022 +0100 (2022-03-22) |
parents | ede1d184d5c5 |
children | 7fb34513be29 |
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 # What is the latest version available today?
17 current_version()
18 {
19 wget -O - https://ezix.org/src/pkg/lshw/tags 2>/dev/null | \
20 sed '/src\/tag/!d;s|.*">||;s|<.*||;q'
21 }
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 cd $PACKAGE-$VERSION
27 sed -i 's/hwNode::hwNode/hwNode/' src/core/scsi.cc
28 grep -qs 'define u8' src/core/scsi.cc src/core/burner.cc ||
29 sed -i 's|#include <scsi/scsi.h>|#define u8 __u8\n&|' \
30 src/core/scsi.cc src/core/burner.cc
32 make -j 1 &&
33 make DESTDIR=$DESTDIR install
34 }
36 # Rules to gen a SliTaz package suitable for Tazpkg.
37 genpkg_rules()
38 {
39 mkdir -p $fs/usr/share
41 cp -a $install/usr/sbin $fs/usr
42 cp -a $install/usr/share/lshw $fs/usr/share
43 }