wok annotate usbutils/receipt @ rev 15871
Up: usbutils (007)
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Fri Jan 31 19:47:26 2014 +0100 (2014-01-31) |
parents | 380ffe05937a |
children | 5613d51e1fdf |
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" |
jozee@4974 | 13 TAGS="usb" |
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@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 local root |
mojo@11676 | 47 root=$1 |
mojo@11676 | 48 echo "Processing pre-install commands..." |
mojo@11676 | 49 echo -n "Removing Busybox lsusb... " |
mojo@11676 | 50 rm -f $root/usr/bin/lsusb |
mojo@11676 | 51 status |
mojo@11676 | 52 } |
mojo@11676 | 53 |
mojo@11676 | 54 post_remove() |
mojo@11676 | 55 { |
mojo@11676 | 56 ln -s /bin/busybox $1/usr/bin/lsusb |
mojo@11676 | 57 } |