wok-4.x view usbutils/receipt @ rev 12471
Mass Rebuild of base packages
author | Stanislas Leduc <shann@slitaz.org> |
---|---|
date | Thu Nov 10 11:11:46 2022 +0000 (2022-11-10) |
parents | fd59449e3608 |
children |
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 WGET_URL="http://mirror.slitaz.org/sources/packages-4.0/u/$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 $_pkg/usr/bin $fs/usr
36 cp -a $_pkg/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 }