wok-6.x diff usbids/receipt @ rev 24351

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Feb 03 10:14:47 2022 +0000 (2022-02-03)
parents 3b2652bb1db8
children 7aaca7142a16
line diff
     1.1 --- a/usbids/receipt	Thu Oct 31 13:27:08 2019 +0100
     1.2 +++ b/usbids/receipt	Thu Feb 03 10:14:47 2022 +0000
     1.3 @@ -1,7 +1,7 @@
     1.4  # SliTaz package receipt.
     1.5  
     1.6  PACKAGE="usbids"
     1.7 -VERSION="20191031"
     1.8 +VERSION="20211224"
     1.9  CATEGORY="misc"
    1.10  SHORT_DESC="List of USB ID's."
    1.11  MAINTAINER="slaxemulator@gmail.com"
    1.12 @@ -15,6 +15,12 @@
    1.13  
    1.14  HOST_ARCH="i486 arm"
    1.15  
    1.16 +current_version()
    1.17 +{
    1.18 +	wget -O - http://www.linux-usb.org/usb.ids 2>/dev/null | \
    1.19 +	sed '/^# Version/!d;s|.*: ||;s|\.||g;q'
    1.20 +}
    1.21 +
    1.22  # Rules to configure and make the package.
    1.23  compile_rules()
    1.24  {