wok-6.x annotate usbutils/receipt @ rev 16768
Add retty
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Jun 18 21:54:06 2014 +0200 (2014-06-18) |
parents | b62b949e9826 |
children | 9e01bc6321ea |
rev | line source |
---|---|
erjo@621 | 1 # SliTaz package receipt. |
erjo@621 | 2 |
erjo@621 | 3 PACKAGE="usbutils" |
pankso@15871 | 4 VERSION="007" |
erjo@621 | 5 CATEGORY="system-tools" |
erjo@621 | 6 SHORT_DESC="Displaying information about USB." |
erjo@784 | 7 MAINTAINER="erjo@slitaz.org" |
pascal@15000 | 8 LICENSE="GPL2" |
pankso@15871 | 9 TARBALL="$PACKAGE-$VERSION.tar.xz" |
erjo@621 | 10 WEB_SITE="http://linux-usb.sourceforge.net/" |
slaxemulator@11046 | 11 #WGET_URL="http://www.kernel.org/pub/linux/utils/usb/$PACKAGE/$TARBALL" |
slaxemulator@11046 | 12 WGET_URL="http://sourceware.mirrors.tds.net/pub/kernel.org/linux/utils/usb/$PACKAGE/$TARBALL" |
pankso@16079 | 13 HOST_ARCH="i486 arm" |
pankso@16079 | 14 |
jozee@4974 | 15 TAGS="usb" |
slaxemulator@11044 | 16 DEPENDS="glibc-base libusb libusb-compat zlib usbids" |
slaxemulator@10403 | 17 BUILD_DEPENDS="libusb-dev pkg-config zlib-dev" |
slaxemulator@10403 | 18 |
erjo@621 | 19 # Rules to configure and make the package. |
erjo@621 | 20 compile_rules() |
erjo@621 | 21 { |
pankso@782 | 22 ./configure \ |
pankso@782 | 23 --prefix=/usr \ |
slaxemulator@10077 | 24 --libdir=/usr/lib \ |
pankso@15871 | 25 --datadir=/usr/share/misc \ |
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 |
pascal@15000 | 34 cp -a $install/usr/bin $fs/usr |
pascal@15000 | 35 cp -a $install/usr/sbin $fs/usr |
pankso@10400 | 36 sed -i s'/bash/sh/' $fs/usr/bin/usb-devices |
pankso@15871 | 37 rm -f $fs/usr/bin/lsusb.py |
erjo@621 | 38 } |
mojo@11676 | 39 |
mojo@11676 | 40 # Pre and post install commands for Tazpkg. |
mojo@11676 | 41 # Busybox lsusb does not display human-readable usb.ids hardware info. |
mojo@11676 | 42 # We must remove busybox lsusb symlink before installing. |
mojo@11676 | 43 # |
mojo@11676 | 44 pre_install() |
mojo@11676 | 45 { |
mojo@11676 | 46 echo "Processing pre-install commands..." |
mojo@11676 | 47 echo -n "Removing Busybox lsusb... " |
mojo@11676 | 48 rm -f $root/usr/bin/lsusb |
mojo@11676 | 49 status |
mojo@11676 | 50 } |
mojo@11676 | 51 |
mojo@11676 | 52 post_remove() |
mojo@11676 | 53 { |
mojo@11676 | 54 ln -s /bin/busybox $1/usr/bin/lsusb |
mojo@11676 | 55 } |