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

yasm: Add $CONFIGURE_ARGS.
author Christopher Rogers <slaxemulator@gmail.com>
date Fri May 20 04:19:09 2011 +0000 (2011-05-20)
parents 0b4cf0d9e1b5
children 1ae5963f23df
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 }