summaryrefslogtreecommitdiff
path: root/system/hwinfo/hwinfo.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'system/hwinfo/hwinfo.SlackBuild')
-rw-r--r--system/hwinfo/hwinfo.SlackBuild20
1 files changed, 7 insertions, 13 deletions
diff --git a/system/hwinfo/hwinfo.SlackBuild b/system/hwinfo/hwinfo.SlackBuild
index 0d4395d89e..491fbe2601 100644
--- a/system/hwinfo/hwinfo.SlackBuild
+++ b/system/hwinfo/hwinfo.SlackBuild
@@ -23,16 +23,14 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=hwinfo
-VERSION=16.10
+VERSION=17.3
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
-# Automatically determine the architecture we're building on:
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) ARCH=i486 ;;
arm*) ARCH=arm ;;
- # Unless $ARCH is already set, use uname -m for all other archs:
*) ARCH=$( uname -m ) ;;
esac
fi
@@ -67,8 +65,8 @@ cd $PRGNAM-$VERSION
chown -R root:root .
chmod -R u+w,go+r-w,a-s .
-# remove suse specific syscall
-sed -i '145,149 d' src/hd/kbd.c
+# disable regeneration of changelog and VERSION
+chmod -x ./git2log
# use our CFLAGS
sed -i "s/?= -O2/?= $SLKCFLAGS/" Makefile.common
@@ -76,10 +74,9 @@ sed -i "s/?= -O2/?= $SLKCFLAGS/" Makefile.common
make \
LIBDIR=/usr/lib$LIBDIRSUFFIX
-make \
+make install \
LIBDIR=/usr/lib$LIBDIRSUFFIX \
- DESTDIR=$PKG \
- install
+ DESTDIR=$PKG
mkdir -p $PKG/usr/man/man8
install -m 644 doc/hwinfo.8 $PKG/usr/man/man8/
@@ -87,13 +84,10 @@ install -m 644 doc/hwinfo.8 $PKG/usr/man/man8/
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
-( cd $PKG/usr/man
- find . -type f -exec gzip -9 {} \;
- for i in $( find . -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
-)
+find $PKG/usr/man -type f -exec gzip -9 {} \;
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a Changelog COPYING MAINTAINER README VERSION \
+cp -a changelog COPYING MAINTAINER README VERSION \
$PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild