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

Fix: replace exit 1 by return 1 in receipts (exit broke cook-list function)
author Antoine Bodin <gokhlayeh@slitaz.org>
date Mon Feb 14 19:09:46 2011 +0100 (2011-02-14)
parents 4de2c7803ae7
children d1768332cee0
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 DEPENDS="gtk+ pciutils xorg-libXdamage"
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 || return 1
21 touch done.$file
22 done <<EOT
23 languages.patch
24 os.patch
25 EOT
26 ./configure \
27 --prefix=/usr \
28 $CONFIGURE_ARGS &&
29 make &&
30 make DESTDIR=$PWD/_pkg install
31 }
33 # Rules to gen a SliTaz package suitable for Tazpkg.
34 genpkg_rules()
35 {
36 mkdir -p $fs/usr/lib/$PACKAGE/modules $fs/usr/share/pixmaps
37 cp -a $_pkg/usr/bin $fs/usr
38 cp -a $src/*.so $fs/usr/lib/$PACKAGE/modules
39 cp -a $_pkg/usr/share/$PACKAGE $fs/usr/share
40 cd $fs/usr/share/pixmaps
41 rm ../$PACKAGE/pixmaps/logo.xcf
42 ln -s ../$PACKAGE/pixmaps/logo.png hardinfo.png
43 }