wok-current annotate usbutils/receipt @ rev 10400

usbutils: put ids file in /usr/share/misc and use gzip one. Also include usb-device and hid dump
author Christophe Lincoln <pankso@slitaz.org>
date Tue May 24 03:05:34 2011 +0200 (2011-05-24)
parents e5512b0c965a
children adf05f8df349
rev   line source
erjo@621 1 # SliTaz package receipt.
erjo@621 2
pankso@10400 3 PACKED_SIZE="172.0K"
pankso@10400 4 UNPACKED_SIZE="216.0K"
erjo@621 5 PACKAGE="usbutils"
pankso@9804 6 VERSION="002"
erjo@621 7 CATEGORY="system-tools"
erjo@621 8 SHORT_DESC="Displaying information about USB."
erjo@784 9 MAINTAINER="erjo@slitaz.org"
rcx@3749 10 DEPENDS="glibc-base libusb libusb-compat zlib"
slaxemulator@6521 11 BUILD_DEPENDS="libusb-dev pkg-config zlib-dev"
pankso@9804 12 TARBALL="$PACKAGE-$VERSION.tar.bz2"
erjo@621 13 WEB_SITE="http://linux-usb.sourceforge.net/"
slaxemulator@6521 14 WGET_URL="http://www.kernel.org/pub/linux/utils/usb/$PACKAGE/$TARBALL"
jozee@4974 15 TAGS="usb"
erjo@621 16
erjo@621 17 # Rules to configure and make the package.
erjo@621 18 compile_rules()
erjo@621 19 {
erjo@621 20 cd $src
pankso@782 21 ./configure \
pankso@782 22 --prefix=/usr \
slaxemulator@10077 23 --libdir=/usr/lib \
pankso@10400 24 --datadir=/usr/share/misc \
slaxemulator@10077 25 $CONFIGURE_ARGS &&
pankso@9804 26 make && make install
erjo@621 27 }
erjo@621 28
erjo@621 29 # Rules to gen a SliTaz package suitable for Tazpkg.
erjo@621 30 genpkg_rules()
erjo@621 31 {
rcx@3748 32 mkdir -p $fs/usr/share/misc
pankso@9804 33 # We have lsusb in Busybox
pankso@10400 34 cp -a $_pkg/usr/bin $fs/usr
pankso@10400 35 rm $fs/usr/bin/lsusb*
erjo@621 36 cp -a $_pkg/usr/sbin $fs/usr
pankso@10400 37 cp -a $_pkg/usr/share/misc/usb.ids.gz $fs/usr/share/misc
pankso@10400 38 sed -i s'/bash/sh/' $fs/usr/bin/usb-devices
erjo@621 39 }