From 3a5ee83c1b56e90fa9e6e3600fe8e3969efcfe4b Mon Sep 17 00:00:00 2001 From: Dimitar Nikov Date: Fri, 1 Mar 2024 21:28:58 +0700 Subject: system/hw-probe: Updated for version 1.6. Signed-off-by: Willy Sudiarto Raharjo --- system/hw-probe/hw-probe.SlackBuild | 18 ++++++++++-------- system/hw-probe/hw-probe.info | 8 ++++---- 2 files changed, 14 insertions(+), 12 deletions(-) (limited to 'system') diff --git a/system/hw-probe/hw-probe.SlackBuild b/system/hw-probe/hw-probe.SlackBuild index 8f938e56de..e5b562c257 100644 --- a/system/hw-probe/hw-probe.SlackBuild +++ b/system/hw-probe/hw-probe.SlackBuild @@ -25,7 +25,7 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=hw-probe -VERSION=${VERSION:-1.5} +VERSION=${VERSION:-1.6} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -44,8 +44,13 @@ set -e rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT -cd $PKG -ar p $CWD/${PRGNAM}_${VERSION}-1_all.deb data.tar.xz | tar -xvJ +cd $TMP +tar xvf $CWD/$PRGNAM-$VERSION.tar.gz $PRGNAM-$VERSION/$PRGNAM.pl +cd $PRGNAM-$VERSION + +mkdir -p $PKG/usr/bin +chmod 0755 $PRGNAM.pl +mv $PRGNAM.pl $PKG/usr/bin/$PRGNAM chown -R root:root . find -L . \ @@ -54,15 +59,12 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; -find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ - | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true - mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/usr/man/man1 -mv $PKG/usr/share/man/man1/$PRGNAM.1.gz $PKG/usr/man/man1 -rm -fr $PKG/usr/share +help2man -n $PRGNAM -s 1 $PKG/usr/bin/${PRGNAM} -o $PKG/usr/man/man1/${PRGNAM}.1 +gzip -9 $PKG/usr/man/man1/${PRGNAM}.1 mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc diff --git a/system/hw-probe/hw-probe.info b/system/hw-probe/hw-probe.info index 86fc47b22d..bd52bc134d 100644 --- a/system/hw-probe/hw-probe.info +++ b/system/hw-probe/hw-probe.info @@ -1,9 +1,9 @@ PRGNAM="hw-probe" -VERSION="1.5" +VERSION="1.6" HOMEPAGE="https://github.com/linuxhw/hw-probe" -DOWNLOAD="http://ftp.de.debian.org/debian/pool/main/h/hw-probe/hw-probe_1.5-1_all.deb" -MD5SUM="b728c861887d26c75752e142e4488338" -DOWNLOAD_x86_64="UNSUPPORTED" +DOWNLOAD="https://github.com/linuxhw/hw-probe/archive/1.6/hw-probe-1.6.tar.gz" +MD5SUM="0d35a322c1c619bc23b3c247b2c8772e" +DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="acpica hwinfo perl-Digest-SHA libwww-perl lsb-release cpuid i2c-tools memtester vdpauinfo" MAINTAINER="Dimitar Nikov" -- cgit v1.2.3