diff options
author | Kyle Guinn <elyk03@gmail.com> | 2010-05-11 20:02:10 +0200 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2010-05-11 20:02:10 +0200 |
commit | 3f09cac00b409b6e441037f2f7e789fb9801a174 (patch) | |
tree | 8d3484ed31ae8a9009bd61a0546b02747bbdfb9c /system/usbview/usbview.SlackBuild | |
parent | 0d5f6f3883467a2dd53d107b6380e9d32eebe7dc (diff) | |
download | slackbuilds-3f09cac00b409b6e441037f2f7e789fb9801a174.tar.gz |
system/usbview: Added to 12.0 repository
Diffstat (limited to 'system/usbview/usbview.SlackBuild')
-rw-r--r-- | system/usbview/usbview.SlackBuild | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/system/usbview/usbview.SlackBuild b/system/usbview/usbview.SlackBuild new file mode 100644 index 0000000000..158bdd1a15 --- /dev/null +++ b/system/usbview/usbview.SlackBuild @@ -0,0 +1,54 @@ +#!/bin/sh + +# Slackware build script for usbview +# Written by Kyle Guinn <elyk03@gmail.com> + +PRGNAM="usbview" +VERSION="1.0" +ARCH=${ARCH:-i486} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} + +CWD=$(pwd) +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +DOCS="AUTHORS COPYING ChangeLog INSTALL NEWS README TODO" + +if [ "$ARCH" = "i486" ]; then + SLKCFLAGS="-O2 -march=i486 -mtune=i686" +elif [ "$ARCH" = "i686" ]; then + SLKCFLAGS="-O2 -march=i686 -mtune=i686" +fi + +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 +chown -R root:root . +chmod -R u+w,go+r-w,a-st . + +CFLAGS="$SLKCFLAGS" \ +CXXFLAGS="$SLKCFLAGS" \ +./configure \ + --prefix=/usr \ + --sysconfdir=/etc \ + --localstatedir=/var + +make +make install-strip DESTDIR=$PKG + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cp -a $DOCS $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 |