wok-current annotate usbutils/receipt @ rev 24497

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Feb 19 14:19:02 2022 +0000 (2022-02-19)
parents 86790a278e70
children bfaaab0fd7b3
rev   line source
erjo@621 1 # SliTaz package receipt.
erjo@621 2
erjo@621 3 PACKAGE="usbutils"
pankso@15871 4 VERSION="007"
erjo@621 5 CATEGORY="system-tools"
erjo@621 6 SHORT_DESC="Displaying information about USB."
erjo@784 7 MAINTAINER="erjo@slitaz.org"
pascal@15000 8 LICENSE="GPL2"
pankso@15871 9 TARBALL="$PACKAGE-$VERSION.tar.xz"
erjo@621 10 WEB_SITE="http://linux-usb.sourceforge.net/"
pascal@20421 11 #WGET_URL="https://www.kernel.org/pub/linux/utils/usb/$PACKAGE/$TARBALL"
slaxemulator@11046 12 WGET_URL="http://sourceware.mirrors.tds.net/pub/kernel.org/linux/utils/usb/$PACKAGE/$TARBALL"
pankso@16079 13 HOST_ARCH="i486 arm"
pankso@16079 14
jozee@4974 15 TAGS="usb"
slaxemulator@11044 16 DEPENDS="glibc-base libusb libusb-compat zlib usbids"
slaxemulator@10403 17 BUILD_DEPENDS="libusb-dev pkg-config zlib-dev"
slaxemulator@10403 18
pascal@24353 19 # What is the latest version available today?
pascal@24353 20 current_version()
pascal@24353 21 {
pascal@24353 22 wget -O - https://www.kernel.org/pub/linux/utils/usb/usbutils/ 2>/dev/null | \
pascal@24353 23 sed "/latest/d;/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
pascal@24353 24 }
pascal@24353 25
erjo@621 26 # Rules to configure and make the package.
erjo@621 27 compile_rules()
erjo@621 28 {
pankso@782 29 ./configure \
pankso@782 30 --prefix=/usr \
slaxemulator@10077 31 --libdir=/usr/lib \
pankso@15871 32 --datadir=/usr/share/misc \
slaxemulator@10077 33 $CONFIGURE_ARGS &&
pankso@9804 34 make && make install
erjo@621 35 }
erjo@621 36
erjo@621 37 # Rules to gen a SliTaz package suitable for Tazpkg.
erjo@621 38 genpkg_rules()
erjo@621 39 {
slaxemulator@11044 40 mkdir -p $fs/usr
pascal@15000 41 cp -a $install/usr/bin $fs/usr
pascal@15000 42 cp -a $install/usr/sbin $fs/usr
pankso@10400 43 sed -i s'/bash/sh/' $fs/usr/bin/usb-devices
pankso@15871 44 rm -f $fs/usr/bin/lsusb.py
erjo@621 45 }
mojo@11676 46
mojo@11676 47 post_remove()
mojo@11676 48 {
pascal@18730 49 ln -s /bin/busybox "$1/usr/bin/lsusb"
mojo@11676 50 }