wok-current annotate usbutils/receipt @ rev 10401
usbutils: can't make udev look for usb.ids gziped in misc, so leave it in /usr/share
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Tue May 24 03:13:22 2011 +0200 (2011-05-24) |
parents | 914578fcb697 |
children | 87dcc4995f4d |
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@10401 | 24 --datadir=/usr/share \ |
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@10401 | 37 cp -a $_pkg/usr/share/usb.ids $fs/usr/share/misc |
pankso@10400 | 38 sed -i s'/bash/sh/' $fs/usr/bin/usb-devices |
erjo@621 | 39 } |