wok annotate hardinfo/receipt @ rev 15124

systemd: update bdeps
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Aug 14 22:53:09 2013 +0000 (2013-08-14)
parents d1768332cee0
children 036b997ec7e1
rev   line source
pankso@518 1 # SliTaz package receipt.
pankso@518 2
pankso@518 3 PACKAGE="hardinfo"
slaxemulator@6223 4 VERSION="0.5.1"
pankso@518 5 CATEGORY="system-tools"
pankso@518 6 SHORT_DESC="A tool to get hardware informations and perform benchmarks."
pankso@518 7 MAINTAINER="pankso@slitaz.org"
pascal@2517 8 DEPENDS="gtk+ pciutils xorg-libXdamage"
pascal@1511 9 BUILD_DEPENDS="gtk+ gtk+-dev"
pankso@518 10 TARBALL="$PACKAGE-$VERSION.tar.bz2"
pankso@518 11 WEB_SITE="http://hardinfo.berlios.de/"
pankso@518 12 WGET_URL="http://download.berlios.de/hardinfo/$TARBALL"
pankso@518 13
pankso@518 14 # Rules to configure and make the package.
pankso@518 15 compile_rules()
pankso@518 16 {
pankso@518 17 cd $src
pascal@15110 18 export LDFLAGS="-Wl,--copy-dt-needed-entries -lgmodule"
pascal@726 19 while read file; do
pascal@1442 20 [ -f done.$file ] && continue
slaxemulator@9700 21 patch -p0 < $stuff/$file || return 1
pascal@1442 22 touch done.$file
pascal@726 23 done <<EOT
pascal@726 24 languages.patch
pascal@726 25 os.patch
pascal@726 26 EOT
pankso@518 27 ./configure \
pankso@518 28 --prefix=/usr \
pascal@1442 29 $CONFIGURE_ARGS &&
pascal@1442 30 make &&
pankso@518 31 make DESTDIR=$PWD/_pkg install
pankso@518 32 }
pankso@518 33
pankso@518 34 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@518 35 genpkg_rules()
pankso@518 36 {
pankso@760 37 mkdir -p $fs/usr/lib/$PACKAGE/modules $fs/usr/share/pixmaps
pankso@518 38 cp -a $_pkg/usr/bin $fs/usr
pankso@518 39 cp -a $src/*.so $fs/usr/lib/$PACKAGE/modules
pankso@518 40 cp -a $_pkg/usr/share/$PACKAGE $fs/usr/share
pankso@760 41 cd $fs/usr/share/pixmaps
slaxemulator@6223 42 rm ../$PACKAGE/pixmaps/logo.xcf
pankso@760 43 ln -s ../$PACKAGE/pixmaps/logo.png hardinfo.png
pankso@518 44 }
pankso@518 45