aboutsummaryrefslogtreecommitdiff
path: root/system/hwinfo/hwinfo.SlackBuild
diff options
context:
space:
mode:
authorHeinz Wiesinger <pprkut@liwjatan.at>2010-08-29 23:11:04 -0500
committerErik Hanson <erik@slackbuilds.org>2010-08-30 07:49:34 -0500
commitd40ad949732cadaab2855139a621857a8187e86a (patch)
tree9cf17838face7cf33cfbc5e4d0387dea3973b30b /system/hwinfo/hwinfo.SlackBuild
parentae4287ff68c4e0bb73dd4632b13c116d7be0f18e (diff)
system/hwinfo: Updated for version 17.3.
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
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 0d4395d89e06e..491fbe2601d6f 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