wok view hardinfo/receipt @ rev 19666
mpv: update bdeps
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Jan 30 21:25:46 2017 +0100 (2017-01-30) |
parents | 036b997ec7e1 |
children | e3f377fbc5f0 |
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="http://hardinfo.berlios.de/"
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 cd $src
20 while read file; do
21 [ -f done.$file ] && continue
22 patch -p0 < $stuff/$file || return 1
23 touch done.$file
24 done <<EOT
25 languages.patch
26 os.patch
27 EOT
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 }