wok-current view hardinfo/receipt @ rev 25701

Fix dep for libglamoregl.so (libepoxy), and miss file for amdgpu (thanks alanyih)
author Stanislas Leduc <shann@slitaz.org>
date Fri Apr 19 12:48:51 2024 +0000 (2 months ago)
parents b569b85b0fb9
children
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.gz"
10 WEB_SITE="https://github.com/lpereira/hardinfo"
11 WGET_URL="https://github.com/lpereira/hardinfo/archive/refs/tags/release-0.5.1.tar.gz"
13 DEPENDS="gtk+ pciutils xorg-libXdamage"
14 BUILD_DEPENDS="gtk+ gtk+-dev"
16 # What is the latest version available today?
17 current_version()
18 {
19 wget -O - $WEB_SITE/tags 2>/dev/null | \
20 sed '/archive.*tar/!d;s|.*/[A-Za-z_-]*\(.*\).tar.*|\1|;q'
21 }
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 cd $src/hardinfo2
28 # Patch to be build with new stack
29 # See https://slackbuilds.org/slackbuilds/15.0/system/hardinfo
30 patch -p1 < $stuff/makefile.patch
32 while read file; do
33 [ -f done.$file ] && continue
34 patch -p0 < $stuff/$file || return 1
35 touch done.$file
36 done <<EOT
37 languages.patch
38 os.patch
39 EOT
40 sed -i 's|uname -m|echo i686|' configure
41 ./configure \
42 --prefix=/usr \
43 $CONFIGURE_ARGS &&
44 sed -i 's/^GTK_LIBS.*/& -lgmodule-2.0 -lm/' Makefile && make &&
45 make DESTDIR=$DESTDIR install
46 }
48 # Rules to gen a SliTaz package suitable for Tazpkg.
49 genpkg_rules()
50 {
51 mkdir -p $fs/usr/lib/$PACKAGE $fs/usr/share/pixmaps
52 cp -a $install/usr/bin $fs/usr
53 cp -a $install/usr/lib/$PACKAGE/modules $fs/usr/lib/$PACKAGE
54 cp -a $install/usr/share/$PACKAGE $fs/usr/share
55 cd $fs/usr/share/pixmaps
56 rm ../$PACKAGE/pixmaps/logo.xcf
57 ln -s ../$PACKAGE/pixmaps/logo.png hardinfo.png
58 }