summaryrefslogtreecommitdiff
path: root/system/i8kutils/i8kutils.SlackBuild
diff options
context:
space:
mode:
authorFabio Sangiovanni <sjh+sbo@sanjioh.org>2015-03-27 15:31:00 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2015-03-27 15:31:00 +0700
commit3c71171762b643cb4e88158a7de7222db984321b (patch)
treeafc47de3bb6608afc6f027cfcf1cdc6a5ebddf9c /system/i8kutils/i8kutils.SlackBuild
parent98b0b1410b8e9d5da1b14eb852fa8258545274c7 (diff)
downloadslackbuilds-3c71171762b643cb4e88158a7de7222db984321b.tar.gz
system/i8kutils: Updated for version 1.42.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system/i8kutils/i8kutils.SlackBuild')
-rw-r--r--system/i8kutils/i8kutils.SlackBuild29
1 files changed, 11 insertions, 18 deletions
diff --git a/system/i8kutils/i8kutils.SlackBuild b/system/i8kutils/i8kutils.SlackBuild
index 990aa4d484..09d3003740 100644
--- a/system/i8kutils/i8kutils.SlackBuild
+++ b/system/i8kutils/i8kutils.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for i8kutils
-# Copyright 2013 Fabio Sangiovanni <sjh+sbo@sanjioh.org>
+# Copyright 2015 Fabio Sangiovanni <sjh+sbo@sanjioh.org>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -23,7 +23,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=i8kutils
-VERSION=${VERSION:-1.33}
+VERSION=${VERSION:-1.42}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -59,9 +59,9 @@ set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
-rm -rf $PRGNAM-$VERSION
-tar xvf $CWD/${PRGNAM}_${VERSION}.tar.gz
-cd $PRGNAM-$VERSION
+rm -rf $PRGNAM
+tar xvf $CWD/${PRGNAM}_${VERSION}.tar.xz
+cd $PRGNAM
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 -o -perm 511 \) \
@@ -73,18 +73,11 @@ find -L . \
mkdir -p $PKG/{etc,usr/{bin,man/man1}}
# Override Makefile CFLAGS with ours
-# Override Makefile PREFIX to avoid redundant '/' in paths
make CFLAGS="$SLKCFLAGS"
-make install DESTDIR=$PKG PREFIX=usr
-
-# Optional build of smm diagnostic utility - DANGEROUS!
-# Compilation should fail on Slackware64
-SMM=${SMM:-no}
-if [ "$SMM" == 'yes' ]; then
- mkdir -p $PKG/usr/sbin
- make smm CFLAGS="$SLKCFLAGS"
- make install-smm DESTDIR=$PKG PREFIX=usr
-fi
+
+cp -a \
+ i8kctl i8kfan i8kmon probe_i8k_calls_time \
+ $PKG/usr/bin
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
@@ -93,7 +86,7 @@ find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | gr
cp -a i8kmon.conf $PKG/etc/i8kmon.conf.new
# Copy man pages
-cp -a i8kbuttons.1 i8kctl.1 i8kmon.1 $PKG/usr/man/man1
+cp -a i8kctl.1 i8kmon.1 $PKG/usr/man/man1
find $PKG/usr/man -type f -exec gzip -9 {} \;
for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
@@ -105,7 +98,7 @@ cp -a \
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
# Decomment the following line if you want extra documentation to be included
-#cp -a debian examples patches redhat $PKG/usr/doc/$PRGNAM-$VERSION
+#cp -a debian redhat $PKG/usr/doc/$PRGNAM-$VERSION
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc