wok-next annotate usbutils/receipt @ rev 10742
Up: slitaz-doc (4.2) - New style and include all doc (no more in locale pack)
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Mon May 30 02:35:50 2011 +0200 (2011-05-30) |
parents | 87dcc4995f4d |
children | 7ce14414626f |
rev | line source |
---|---|
erjo@621 | 1 # SliTaz package receipt. |
erjo@621 | 2 |
erjo@621 | 3 PACKAGE="usbutils" |
pankso@9804 | 4 VERSION="002" |
erjo@621 | 5 CATEGORY="system-tools" |
erjo@621 | 6 SHORT_DESC="Displaying information about USB." |
erjo@784 | 7 MAINTAINER="erjo@slitaz.org" |
pankso@9804 | 8 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
erjo@621 | 9 WEB_SITE="http://linux-usb.sourceforge.net/" |
slaxemulator@6521 | 10 WGET_URL="http://www.kernel.org/pub/linux/utils/usb/$PACKAGE/$TARBALL" |
jozee@4974 | 11 TAGS="usb" |
pankso@10722 | 12 BUGS="usb.ids is not gziped and in /usr/share since it's wher udev look for it" |
erjo@621 | 13 |
slaxemulator@10403 | 14 DEPENDS="glibc-base libusb libusb-compat zlib" |
slaxemulator@10403 | 15 BUILD_DEPENDS="libusb-dev pkg-config zlib-dev" |
slaxemulator@10403 | 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 { |
pankso@10722 | 32 mkdir -p $fs/usr/share |
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@10722 | 37 cp -a $_pkg/usr/share/usb.ids $fs/usr/share |
pankso@10400 | 38 sed -i s'/bash/sh/' $fs/usr/bin/usb-devices |
erjo@621 | 39 } |