wok view usbutils/receipt @ rev 13540

Up beautifulsoup (4.1.3)
author Paul Issott <paul@slitaz.org>
date Sun Oct 28 17:33:42 2012 +0000 (2012-10-28)
parents 827a051b2b98
children 380ffe05937a
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 TARBALL="$PACKAGE-$VERSION.tar.bz2"
9 WEB_SITE="http://linux-usb.sourceforge.net/"
10 #WGET_URL="http://www.kernel.org/pub/linux/utils/usb/$PACKAGE/$TARBALL"
11 WGET_URL="http://sourceware.mirrors.tds.net/pub/kernel.org/linux/utils/usb/$PACKAGE/$TARBALL"
12 TAGS="usb"
13 BUGS="usb.ids is not gziped and in /usr/share since it's where udev look for it"
15 DEPENDS="glibc-base libusb libusb-compat zlib usbids"
16 BUILD_DEPENDS="libusb-dev pkg-config zlib-dev"
18 # Rules to configure and make the package.
19 compile_rules()
20 {
21 cd $src
22 ./configure \
23 --prefix=/usr \
24 --libdir=/usr/lib \
25 --datadir=/usr/share \
26 $CONFIGURE_ARGS &&
27 make && make install
28 }
30 # Rules to gen a SliTaz package suitable for Tazpkg.
31 genpkg_rules()
32 {
33 mkdir -p $fs/usr
34 cp -a $_pkg/usr/bin $fs/usr
35 cp -a $_pkg/usr/sbin $fs/usr
36 sed -i s'/bash/sh/' $fs/usr/bin/usb-devices
37 }
39 # Pre and post install commands for Tazpkg.
40 # Busybox lsusb does not display human-readable usb.ids hardware info.
41 # We must remove busybox lsusb symlink before installing.
42 #
43 pre_install()
44 {
45 local root
46 root=$1
47 echo "Processing pre-install commands..."
48 echo -n "Removing Busybox lsusb... "
49 rm -f $root/usr/bin/lsusb
50 status
51 }
53 post_remove()
54 {
55 ln -s /bin/busybox $1/usr/bin/lsusb
56 }