wok-current annotate hardinfo/receipt @ rev 25713
Up abiword (3.0.5), libwmf (0.2.13), fix wv url
author | Stanislas Leduc <shann@slitaz.org> |
---|---|
date | Fri Jun 14 11:35:21 2024 +0000 (3 months ago) |
parents | b569b85b0fb9 |
children |
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" |
shann@25634 | 9 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@20673 | 10 WEB_SITE="https://github.com/lpereira/hardinfo" |
shann@25634 | 11 WGET_URL="https://github.com/lpereira/hardinfo/archive/refs/tags/release-0.5.1.tar.gz" |
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 { |
shann@25634 | 26 cd $src/hardinfo2 |
shann@25634 | 27 |
shann@25634 | 28 # Patch to be build with new stack |
shann@25634 | 29 # See https://slackbuilds.org/slackbuilds/15.0/system/hardinfo |
shann@25634 | 30 patch -p1 < $stuff/makefile.patch |
shann@25634 | 31 |
pascal@726 | 32 while read file; do |
pascal@1442 | 33 [ -f done.$file ] && continue |
slaxemulator@9700 | 34 patch -p0 < $stuff/$file || return 1 |
pascal@1442 | 35 touch done.$file |
pascal@726 | 36 done <<EOT |
pascal@726 | 37 languages.patch |
pascal@726 | 38 os.patch |
pascal@726 | 39 EOT |
pascal@20950 | 40 sed -i 's|uname -m|echo i686|' configure |
pankso@518 | 41 ./configure \ |
pankso@518 | 42 --prefix=/usr \ |
pascal@1442 | 43 $CONFIGURE_ARGS && |
pascal@15307 | 44 sed -i 's/^GTK_LIBS.*/& -lgmodule-2.0 -lm/' Makefile && make && |
pascal@15171 | 45 make DESTDIR=$DESTDIR install |
pankso@518 | 46 } |
pankso@518 | 47 |
pankso@518 | 48 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@518 | 49 genpkg_rules() |
pankso@518 | 50 { |
shann@25634 | 51 mkdir -p $fs/usr/lib/$PACKAGE $fs/usr/share/pixmaps |
pascal@15171 | 52 cp -a $install/usr/bin $fs/usr |
shann@25634 | 53 cp -a $install/usr/lib/$PACKAGE/modules $fs/usr/lib/$PACKAGE |
pascal@15171 | 54 cp -a $install/usr/share/$PACKAGE $fs/usr/share |
pankso@760 | 55 cd $fs/usr/share/pixmaps |
slaxemulator@6223 | 56 rm ../$PACKAGE/pixmaps/logo.xcf |
pankso@760 | 57 ln -s ../$PACKAGE/pixmaps/logo.png hardinfo.png |
pankso@518 | 58 } |