diff options
author | B. Watson <yalhcru@gmail.com> | 2010-05-13 00:42:11 +0200 |
---|---|---|
committer | David Somero <xgizzmo@slackbuilds.org> | 2010-05-13 00:42:11 +0200 |
commit | a2a439b36f266fc922141bc8c2830cd53899c113 (patch) | |
tree | 6ed503307d416d67265a96cc3560303b6a39ec24 /system/usbmon/usbmon.SlackBuild | |
parent | 07b7666b6f170a47280445d02a97bdb74d0be4c0 (diff) | |
download | slackbuilds-a2a439b36f266fc922141bc8c2830cd53899c113.tar.gz |
system/usbmon: Updated for version 5.4
Diffstat (limited to 'system/usbmon/usbmon.SlackBuild')
-rw-r--r-- | system/usbmon/usbmon.SlackBuild | 9 |
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} |