wok annotate usbutils/receipt @ rev 14501
python-mock: typo
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat May 11 18:03:27 2013 +0200 (2013-05-11) |
parents | 827a051b2b98 |
children | 380ffe05937a |
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@11046 | 10 #WGET_URL="http://www.kernel.org/pub/linux/utils/usb/$PACKAGE/$TARBALL" |
slaxemulator@11046 | 11 WGET_URL="http://sourceware.mirrors.tds.net/pub/kernel.org/linux/utils/usb/$PACKAGE/$TARBALL" |
jozee@4974 | 12 TAGS="usb" |
slaxemulator@11046 | 13 BUGS="usb.ids is not gziped and in /usr/share since it's where udev look for it" |
erjo@621 | 14 |
slaxemulator@11044 | 15 DEPENDS="glibc-base libusb libusb-compat zlib usbids" |
slaxemulator@10403 | 16 BUILD_DEPENDS="libusb-dev pkg-config zlib-dev" |
slaxemulator@10403 | 17 |
erjo@621 | 18 # Rules to configure and make the package. |
erjo@621 | 19 compile_rules() |
erjo@621 | 20 { |
erjo@621 | 21 cd $src |
pankso@782 | 22 ./configure \ |
pankso@782 | 23 --prefix=/usr \ |
slaxemulator@10077 | 24 --libdir=/usr/lib \ |
pankso@10401 | 25 --datadir=/usr/share \ |
slaxemulator@10077 | 26 $CONFIGURE_ARGS && |
pankso@9804 | 27 make && make install |
erjo@621 | 28 } |
erjo@621 | 29 |
erjo@621 | 30 # Rules to gen a SliTaz package suitable for Tazpkg. |
erjo@621 | 31 genpkg_rules() |
erjo@621 | 32 { |
slaxemulator@11044 | 33 mkdir -p $fs/usr |
pankso@10400 | 34 cp -a $_pkg/usr/bin $fs/usr |
erjo@621 | 35 cp -a $_pkg/usr/sbin $fs/usr |
pankso@10400 | 36 sed -i s'/bash/sh/' $fs/usr/bin/usb-devices |
erjo@621 | 37 } |
mojo@11676 | 38 |
mojo@11676 | 39 # Pre and post install commands for Tazpkg. |
mojo@11676 | 40 # Busybox lsusb does not display human-readable usb.ids hardware info. |
mojo@11676 | 41 # We must remove busybox lsusb symlink before installing. |
mojo@11676 | 42 # |
mojo@11676 | 43 pre_install() |
mojo@11676 | 44 { |
mojo@11676 | 45 local root |
mojo@11676 | 46 root=$1 |
mojo@11676 | 47 echo "Processing pre-install commands..." |
mojo@11676 | 48 echo -n "Removing Busybox lsusb... " |
mojo@11676 | 49 rm -f $root/usr/bin/lsusb |
mojo@11676 | 50 status |
mojo@11676 | 51 } |
mojo@11676 | 52 |
mojo@11676 | 53 post_remove() |
mojo@11676 | 54 { |
mojo@11676 | 55 ln -s /bin/busybox $1/usr/bin/lsusb |
mojo@11676 | 56 } |