aboutsummaryrefslogtreecommitdiff
path: root/system/usbview
diff options
context:
space:
mode:
authorKyle Guinn <elyk03@gmail.com>2010-05-13 00:42:12 +0200
committerRobby Workman <rworkman@slackbuilds.org>2010-05-13 00:42:12 +0200
commit6a625a605e06adae91c23545ce43c1f3f2b11cb4 (patch)
tree11fd9fb4e71aef40cb65ef264148fb6b43596251 /system/usbview
parenta2a439b36f266fc922141bc8c2830cd53899c113 (diff)
system/usbview: Updated for version 1.0
Diffstat (limited to 'system/usbview')
-rw-r--r--system/usbview/usbview.SlackBuild21
-rw-r--r--system/usbview/usbview.info2
2 files changed, 16 insertions, 7 deletions
diff --git a/system/usbview/usbview.SlackBuild b/system/usbview/usbview.SlackBuild
index 158bdd1a15682..565944a197b0a 100644
--- a/system/usbview/usbview.SlackBuild
+++ b/system/usbview/usbview.SlackBuild
@@ -14,12 +14,15 @@ 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"
+ SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+ LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
- SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+ SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+ LIBDIRSUFFIX=""
+elif [ "$ARCH" = "x86_64" ]; then
+ SLKCFLAGS="-O2 -fPIC"
+ LIBDIRSUFFIX="64"
fi
set -e
@@ -37,18 +40,22 @@ CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \
+ --libdir=/usr/lib${LIBDIRSUFFIX} \
--sysconfdir=/etc \
- --localstatedir=/var
+ --localstatedir=/var \
+ --build=$ARCH-slackware-linux
make
make install-strip DESTDIR=$PKG
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a $DOCS $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a \
+ AUTHORS COPYING ChangeLog INSTALL NEWS README TODO \
+ $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}
diff --git a/system/usbview/usbview.info b/system/usbview/usbview.info
index 49ec6c841bb3f..35be2bc9f849c 100644
--- a/system/usbview/usbview.info
+++ b/system/usbview/usbview.info
@@ -3,6 +3,8 @@ VERSION="1.0"
HOMEPAGE="http://www.kroah.com/linux/usb/"
DOWNLOAD="http://downloads.sourceforge.net/usbview/usbview-1.0.tar.gz"
MD5SUM="2ac1bdae03a858b965e895b211a75ad7"
+DOWNLOAD_x86_64=""
+MD5SUM_x86_64=""
MAINTAINER="Kyle Guinn"
EMAIL="elyk03@gmail.com"
APPROVED="rworkman"