summaryrefslogtreecommitdiffstats
path: root/system/hw-probe/hw-probe.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'system/hw-probe/hw-probe.SlackBuild')
-rw-r--r--system/hw-probe/hw-probe.SlackBuild18
1 files changed, 10 insertions, 8 deletions
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