mirror of
https://github.com/Ponce/slackbuilds
synced 2024-10-01 06:32:51 +02:00
system/usbview: Added to 12.0 repository
This commit is contained in:
parent
0d5f6f3883
commit
3f09cac00b
4 changed files with 85 additions and 0 deletions
4
system/usbview/README
Normal file
4
system/usbview/README
Normal file
|
@ -0,0 +1,4 @@
|
|||
USBView is a GTK program that displays the topography of the devices that are
|
||||
plugged into the USB bus on a Linux machine. It also displays information on
|
||||
each of the devices. This can be useful to determine if a device is working
|
||||
properly or not.
|
19
system/usbview/slack-desc
Normal file
19
system/usbview/slack-desc
Normal file
|
@ -0,0 +1,19 @@
|
|||
# HOW TO EDIT THIS FILE:
|
||||
# The "handy ruler" below makes it easier to edit a package description. Line
|
||||
# up the first '|' above the ':' following the base package name, and the '|'
|
||||
# on the right side marks the last column you can put a character in. You must
|
||||
# make exactly 11 lines for the formatting to be correct. It's also
|
||||
# customary to leave one space after the ':'.
|
||||
|
||||
|-----handy-ruler------------------------------------------------------|
|
||||
usbview: USBView (GTK program that displays the topography of USB devices)
|
||||
usbview:
|
||||
usbview: USBView is a GTK program that displays the topography of the
|
||||
usbview: devices that are plugged into the USB bus on a Linux machine.
|
||||
usbview: It also displays information on each of the devices. This can
|
||||
usbview: be useful to determine if a device is working properly or not.
|
||||
usbview:
|
||||
usbview: Homepage: http://www.kroah.com/linux/usb/
|
||||
usbview:
|
||||
usbview:
|
||||
usbview:
|
54
system/usbview/usbview.SlackBuild
Normal file
54
system/usbview/usbview.SlackBuild
Normal file
|
@ -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
|
8
system/usbview/usbview.info
Normal file
8
system/usbview/usbview.info
Normal file
|
@ -0,0 +1,8 @@
|
|||
PRGNAM="usbview"
|
||||
VERSION="1.0"
|
||||
HOMEPAGE="http://www.kroah.com/linux/usb/"
|
||||
DOWNLOAD="http://downloads.sourceforge.net/usbview/usbview-1.0.tar.gz"
|
||||
MD5SUM="2ac1bdae03a858b965e895b211a75ad7"
|
||||
MAINTAINER="Kyle Guinn"
|
||||
EMAIL="elyk03@gmail.com"
|
||||
APPROVED="rworkman"
|
Loading…
Reference in a new issue