wok-6.x view hardinfo/receipt @ rev 25298

updated scrot (0.8-12 -> 1.7)
author Hans-G?nter Theisgen
date Wed Jul 20 07:03:07 2022 +0100 (2022-07-20)
parents c879e3205be9
children
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 # What is the latest version available today?
17 current_version()
18 {
19 wget -O - $WEB_SITE/tags 2>/dev/null | \
20 sed '/archive.*tar/!d;s|.*/[A-Za-z_-]*\(.*\).tar.*|\1|;q'
21 }
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 while read file; do
27 [ -f done.$file ] && continue
28 patch -p0 < $stuff/$file || return 1
29 touch done.$file
30 done <<EOT
31 languages.patch
32 os.patch
33 EOT
34 sed -i 's|uname -m|echo i686|' configure
35 ./configure \
36 --prefix=/usr \
37 $CONFIGURE_ARGS &&
38 sed -i 's/^GTK_LIBS.*/& -lgmodule-2.0 -lm/' Makefile && make &&
39 make DESTDIR=$DESTDIR install
40 }
42 # Rules to gen a SliTaz package suitable for Tazpkg.
43 genpkg_rules()
44 {
45 mkdir -p $fs/usr/lib/$PACKAGE/modules $fs/usr/share/pixmaps
46 cp -a $install/usr/bin $fs/usr
47 cp -a $src/*.so $fs/usr/lib/$PACKAGE/modules
48 cp -a $install/usr/share/$PACKAGE $fs/usr/share
49 cd $fs/usr/share/pixmaps
50 rm ../$PACKAGE/pixmaps/logo.xcf
51 ln -s ../$PACKAGE/pixmaps/logo.png hardinfo.png
52 }