wok-4.x view hardinfo/receipt @ rev 1810

qemu: update depends
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Dec 04 17:17:42 2008 +0000 (2008-12-04)
parents 3d99ecce2d4b
children be4b9618ea05
line source
1 # SliTaz package receipt.
3 PACKAGE="hardinfo"
4 VERSION="0.4.2.3"
5 CATEGORY="system-tools"
6 SHORT_DESC="A tool to get hardware informations and perform benchmarks."
7 MAINTAINER="pankso@slitaz.org"
8 DEPENDS="gtk+ pciutils"
9 BUILD_DEPENDS="gtk+ gtk+-dev"
10 TARBALL="$PACKAGE-$VERSION.tar.bz2"
11 WEB_SITE="http://hardinfo.berlios.de/"
12 WGET_URL="http://download.berlios.de/hardinfo/$TARBALL"
14 # Rules to configure and make the package.
15 compile_rules()
16 {
17 cd $src
18 while read file; do
19 [ -f done.$file ] && continue
20 patch -p0 < ../stuff/$file || exit 1
21 touch done.$file
22 done <<EOT
23 modules.patch
24 users.patch
25 languages.patch
26 boots.patch
27 os.patch
28 usb.patch
29 EOT
30 ./configure \
31 --prefix=/usr \
32 $CONFIGURE_ARGS &&
33 make &&
34 make DESTDIR=$PWD/_pkg install
35 }
37 # Rules to gen a SliTaz package suitable for Tazpkg.
38 genpkg_rules()
39 {
40 mkdir -p $fs/usr/lib/$PACKAGE/modules $fs/usr/share/pixmaps
41 cp -a $_pkg/usr/bin $fs/usr
42 cp -a $src/*.so $fs/usr/lib/$PACKAGE/modules
43 cp -a $_pkg/usr/share/$PACKAGE $fs/usr/share
44 cd $fs/usr/share/pixmaps
45 rm ../$PACKAGE/pixmaps/logo.svg
46 ln -s ../$PACKAGE/pixmaps/logo.png hardinfo.png
47 }