wok-current view usbutils/receipt @ rev 15992
lighttpd: add to ARM arch
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Sun Mar 02 14:27:39 2014 +0100 (2014-03-02) |
parents | 380ffe05937a |
children | 5613d51e1fdf |
line source
1 # SliTaz package receipt.
3 PACKAGE="usbutils"
4 VERSION="007"
5 CATEGORY="system-tools"
6 SHORT_DESC="Displaying information about USB."
7 MAINTAINER="erjo@slitaz.org"
8 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.xz"
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"
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/misc \
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 $install/usr/bin $fs/usr
35 cp -a $install/usr/sbin $fs/usr
36 sed -i s'/bash/sh/' $fs/usr/bin/usb-devices
37 rm -f $fs/usr/bin/lsusb.py
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 }