# SliTaz package receipt. PACKAGE="usbutils" VERSION="004" CATEGORY="system-tools" SHORT_DESC="Displaying information about USB." MAINTAINER="erjo@slitaz.org" TARBALL="$PACKAGE-$VERSION.tar.bz2" WEB_SITE="http://linux-usb.sourceforge.net/" #WGET_URL="http://www.kernel.org/pub/linux/utils/usb/$PACKAGE/$TARBALL" WGET_URL="http://sourceware.mirrors.tds.net/pub/kernel.org/linux/utils/usb/$PACKAGE/$TARBALL" TAGS="usb" BUGS="usb.ids is not gziped and in /usr/share since it's where udev look for it" DEPENDS="glibc-base libusb libusb-compat zlib usbids" BUILD_DEPENDS="libusb-dev pkg-config zlib-dev" # Rules to configure and make the package. compile_rules() { cd $src ./configure \ --prefix=/usr \ --libdir=/usr/lib \ --datadir=/usr/share \ $CONFIGURE_ARGS && make && make install } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $fs/usr cp -a $_pkg/usr/bin $fs/usr cp -a $_pkg/usr/sbin $fs/usr sed -i s'/bash/sh/' $fs/usr/bin/usb-devices } # Pre and post install commands for Tazpkg. # Busybox lsusb does not display human-readable usb.ids hardware info. # We must remove busybox lsusb symlink before installing. # pre_install() { local root root=$1 echo "Processing pre-install commands..." echo -n "Removing Busybox lsusb... " rm -f $root/usr/bin/lsusb status } post_remove() { ln -s /bin/busybox $1/usr/bin/lsusb }