summaryrefslogtreecommitdiff
path: root/system/usbmon/usbmon.SlackBuild
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2010-05-13 00:42:11 +0200
committerDavid Somero <xgizzmo@slackbuilds.org>2010-05-13 00:42:11 +0200
commita2a439b36f266fc922141bc8c2830cd53899c113 (patch)
tree6ed503307d416d67265a96cc3560303b6a39ec24 /system/usbmon/usbmon.SlackBuild
parent07b7666b6f170a47280445d02a97bdb74d0be4c0 (diff)
downloadslackbuilds-a2a439b36f266fc922141bc8c2830cd53899c113.tar.gz
system/usbmon: Updated for version 5.4
Diffstat (limited to 'system/usbmon/usbmon.SlackBuild')
-rw-r--r--system/usbmon/usbmon.SlackBuild9
1 files changed, 6 insertions, 3 deletions
diff --git a/system/usbmon/usbmon.SlackBuild b/system/usbmon/usbmon.SlackBuild
index d2f8411e12..8eec7295bf 100644
--- a/system/usbmon/usbmon.SlackBuild
+++ b/system/usbmon/usbmon.SlackBuild
@@ -17,10 +17,13 @@ OUTPUT=${OUTPUT:-/tmp}
if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+ LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+ LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
+ LIBDIRSUFFIX="64"
fi
set -e
@@ -35,7 +38,7 @@ chown -R root:root .
chmod -R a-s,u+w,go+r-w .
make CFLAGS="$SLKCFLAGS"
-strip $PRGNAM
+strip --strip-unneeded $PRGNAM
mkdir -p $PKG/usr/sbin
install -m0755 -o root -g root $PRGNAM $PKG/usr/sbin
@@ -43,11 +46,11 @@ mkdir -p $PKG/usr/man/man8
gzip -9c $PRGNAM.8 > $PKG/usr/man/man8/$PRGNAM.8.gz
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp COPYING README $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a COPYING README $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cd $PKG
-/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}