From d40ad949732cadaab2855139a621857a8187e86a Mon Sep 17 00:00:00 2001 From: Heinz Wiesinger Date: Sun, 29 Aug 2010 23:11:04 -0500 Subject: system/hwinfo: Updated for version 17.3. Signed-off-by: Robby Workman --- system/hwinfo/hwinfo.SlackBuild | 20 +++++++------------- 1 file changed, 7 insertions(+), 13 deletions(-) (limited to 'system/hwinfo/hwinfo.SlackBuild') 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 -- cgit v1.2.3