wok-current annotate hardinfo/receipt @ rev 25069
updated alsaequal (0.6 -> 0.7.1)
author | Hans-G?nter Theisgen |
---|---|
date | Fri Jun 10 14:01:46 2022 +0100 (2022-06-10) |
parents | c879e3205be9 |
children | 3ad63c8fc2f9 |
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@15171 | 8 LICENSE="GPL2" |
pankso@518 | 9 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
pascal@20673 | 10 WEB_SITE="https://github.com/lpereira/hardinfo" |
pankso@518 | 11 WGET_URL="http://download.berlios.de/hardinfo/$TARBALL" |
pankso@518 | 12 |
pascal@15171 | 13 DEPENDS="gtk+ pciutils xorg-libXdamage" |
pascal@15171 | 14 BUILD_DEPENDS="gtk+ gtk+-dev" |
pascal@15171 | 15 |
pascal@24308 | 16 # What is the latest version available today? |
pascal@24308 | 17 current_version() |
pascal@24308 | 18 { |
pascal@24308 | 19 wget -O - $WEB_SITE/tags 2>/dev/null | \ |
pascal@24308 | 20 sed '/archive.*tar/!d;s|.*/[A-Za-z_-]*\(.*\).tar.*|\1|;q' |
pascal@24308 | 21 } |
pascal@24308 | 22 |
pankso@518 | 23 # Rules to configure and make the package. |
pankso@518 | 24 compile_rules() |
pankso@518 | 25 { |
pascal@726 | 26 while read file; do |
pascal@1442 | 27 [ -f done.$file ] && continue |
slaxemulator@9700 | 28 patch -p0 < $stuff/$file || return 1 |
pascal@1442 | 29 touch done.$file |
pascal@726 | 30 done <<EOT |
pascal@726 | 31 languages.patch |
pascal@726 | 32 os.patch |
pascal@726 | 33 EOT |
pascal@20950 | 34 sed -i 's|uname -m|echo i686|' configure |
pankso@518 | 35 ./configure \ |
pankso@518 | 36 --prefix=/usr \ |
pascal@1442 | 37 $CONFIGURE_ARGS && |
pascal@15307 | 38 sed -i 's/^GTK_LIBS.*/& -lgmodule-2.0 -lm/' Makefile && make && |
pascal@15171 | 39 make DESTDIR=$DESTDIR install |
pankso@518 | 40 } |
pankso@518 | 41 |
pankso@518 | 42 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@518 | 43 genpkg_rules() |
pankso@518 | 44 { |
pankso@760 | 45 mkdir -p $fs/usr/lib/$PACKAGE/modules $fs/usr/share/pixmaps |
pascal@15171 | 46 cp -a $install/usr/bin $fs/usr |
pankso@518 | 47 cp -a $src/*.so $fs/usr/lib/$PACKAGE/modules |
pascal@15171 | 48 cp -a $install/usr/share/$PACKAGE $fs/usr/share |
pankso@760 | 49 cd $fs/usr/share/pixmaps |
slaxemulator@6223 | 50 rm ../$PACKAGE/pixmaps/logo.xcf |
pankso@760 | 51 ln -s ../$PACKAGE/pixmaps/logo.png hardinfo.png |
pankso@518 | 52 } |
pankso@518 | 53 |