wok-current annotate usbutils/receipt @ rev 11044
Up: usbutils to 004.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Sun Oct 16 08:02:37 2011 +0000 (2011-10-16) |
parents | df0ab0545425 |
children | 827a051b2b98 |
rev | line source |
---|---|
erjo@621 | 1 # SliTaz package receipt. |
erjo@621 | 2 |
erjo@621 | 3 PACKAGE="usbutils" |
slaxemulator@11044 | 4 VERSION="004" |
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@11044 | 14 DEPENDS="glibc-base libusb libusb-compat zlib usbids" |
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 { |
slaxemulator@11044 | 32 mkdir -p $fs/usr |
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 sed -i s'/bash/sh/' $fs/usr/bin/usb-devices |
erjo@621 | 38 } |