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

gummi: add LDFLAGS
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Aug 16 08:40:38 2013 +0000 (2013-08-16)
parents 1ae5963f23df
children a54f561b0931
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 make LDFLAGS="-Wl,--copy-dt-needed-entries -lgmodule-2.0" &&
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 }