wok view usbutils/receipt @ rev 15582

crosstool-ng, cloudvpn: update bdeps
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Nov 30 11:34:10 2013 +0000 (2013-11-30)
parents fd59449e3608
children b62b949e9826
line source
1 # SliTaz package receipt.
3 PACKAGE="usbutils"
4 VERSION="004"
5 CATEGORY="system-tools"
6 SHORT_DESC="Displaying information about USB."
7 MAINTAINER="erjo@slitaz.org"
8 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.bz2"
10 WEB_SITE="http://linux-usb.sourceforge.net/"
11 #WGET_URL="http://www.kernel.org/pub/linux/utils/usb/$PACKAGE/$TARBALL"
12 WGET_URL="http://sourceware.mirrors.tds.net/pub/kernel.org/linux/utils/usb/$PACKAGE/$TARBALL"
13 TAGS="usb"
14 BUGS="usb.ids is not gziped and in /usr/share since it's where udev look for it"
16 DEPENDS="glibc-base libusb libusb-compat zlib usbids"
17 BUILD_DEPENDS="libusb-dev pkg-config zlib-dev"
19 # Rules to configure and make the package.
20 compile_rules()
21 {
22 cd $src
23 ./configure \
24 --prefix=/usr \
25 --libdir=/usr/lib \
26 --datadir=/usr/share \
27 $CONFIGURE_ARGS &&
28 make && make install
29 }
31 # Rules to gen a SliTaz package suitable for Tazpkg.
32 genpkg_rules()
33 {
34 mkdir -p $fs/usr
35 cp -a $install/usr/bin $fs/usr
36 cp -a $install/usr/sbin $fs/usr
37 sed -i s'/bash/sh/' $fs/usr/bin/usb-devices
38 }
40 # Pre and post install commands for Tazpkg.
41 # Busybox lsusb does not display human-readable usb.ids hardware info.
42 # We must remove busybox lsusb symlink before installing.
43 #
44 pre_install()
45 {
46 local root
47 root=$1
48 echo "Processing pre-install commands..."
49 echo -n "Removing Busybox lsusb... "
50 rm -f $root/usr/bin/lsusb
51 status
52 }
54 post_remove()
55 {
56 ln -s /bin/busybox $1/usr/bin/lsusb
57 }