# SliTaz package receipt. PACKAGE="usbutils" VERSION="007" CATEGORY="system-tools" SHORT_DESC="Displaying information about USB." MAINTAINER="erjo@slitaz.org" LICENSE="GPL2" TARBALL="$PACKAGE-$VERSION.tar.xz" WEB_SITE="https://linux-usb.sourceforge.net/" WGET_URL="https://mirrors.edge.kernel.org/pub/linux/utils/usb/usbutils/$TARBALL" HOST_ARCH="i486 arm" TAGS="usb" DEPENDS="glibc-base libusb libusb-compat zlib usbids" BUILD_DEPENDS="libusb-dev pkg-config zlib-dev" # What is the latest version available today? current_version() { wget -O - https://www.kernel.org/pub/linux/utils/usb/usbutils/ 2>/dev/null | \ sed "/latest/d;/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q } # Rules to configure and make the package. compile_rules() { ./configure \ --prefix=/usr \ --libdir=/usr/lib \ --datadir=/usr/share/misc \ $CONFIGURE_ARGS && make && make install } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $fs/usr cp -a $install/usr/bin $fs/usr cp -a $install/usr/sbin $fs/usr sed -i s'/bash/sh/' $fs/usr/bin/usb-devices rm -f $fs/usr/bin/lsusb.py } post_remove() { ln -s /bin/busybox "$1/usr/bin/lsusb" }