wok view hardinfo/receipt @ rev 21368

updated littleutils (1.0.32 -> 1.0.41)
author Hans-G?nter Theisgen
date Sun Apr 21 17:17:34 2019 +0100 (2019-04-21)
parents 63cdeb5a1e77
children b569b85b0fb9
line source
1 # SliTaz package receipt.
3 PACKAGE="hardinfo"
4 VERSION="0.5.1"
5 CATEGORY="system-tools"
6 SHORT_DESC="A tool to get hardware informations and perform benchmarks."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.bz2"
10 WEB_SITE="https://github.com/lpereira/hardinfo"
11 WGET_URL="http://download.berlios.de/hardinfo/$TARBALL"
13 DEPENDS="gtk+ pciutils xorg-libXdamage"
14 BUILD_DEPENDS="gtk+ gtk+-dev"
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 while read file; do
20 [ -f done.$file ] && continue
21 patch -p0 < $stuff/$file || return 1
22 touch done.$file
23 done <<EOT
24 languages.patch
25 os.patch
26 EOT
27 sed -i 's|uname -m|echo i686|' configure
28 ./configure \
29 --prefix=/usr \
30 $CONFIGURE_ARGS &&
31 sed -i 's/^GTK_LIBS.*/& -lgmodule-2.0 -lm/' Makefile && make &&
32 make DESTDIR=$DESTDIR install
33 }
35 # Rules to gen a SliTaz package suitable for Tazpkg.
36 genpkg_rules()
37 {
38 mkdir -p $fs/usr/lib/$PACKAGE/modules $fs/usr/share/pixmaps
39 cp -a $install/usr/bin $fs/usr
40 cp -a $src/*.so $fs/usr/lib/$PACKAGE/modules
41 cp -a $install/usr/share/$PACKAGE $fs/usr/share
42 cd $fs/usr/share/pixmaps
43 rm ../$PACKAGE/pixmaps/logo.xcf
44 ln -s ../$PACKAGE/pixmaps/logo.png hardinfo.png
45 }