wok-next view usbids/receipt @ rev 21627
updated enet (1.2.1 -> 1.3.15)
author | Hans-G?nter Theisgen |
---|---|
date | Thu Jun 25 16:07:08 2020 +0100 (2020-06-25) |
parents | 4be7000381e1 |
children |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="usbids"
4 VERSION="20180504"
5 CATEGORY="misc"
6 SHORT_DESC="List of USB ID's"
7 MAINTAINER="devel@slitaz.org"
8 LICENSE="PublicDomain"
9 WEB_SITE="http://www.linux-usb.org/usb-ids.html"
11 TARBALL="$PACKAGE-$VERSION.gz"
12 WGET_URL="http://www.linux-usb.org/usb.ids.gz"
14 compile_rules() {
15 ver=$(zcat $TARBALL | fgrep '# Version:' | tr -cd '0-9')
16 separator
17 echo "Receipt version: $VERSION"
18 echo "Actual version: $ver"
19 separator
21 if [ "$VERSION" != "$ver" ]; then
22 echo "Updating version"
23 sed -i "/^VERSION=/s|\".*\"|\"$ver\"|" $WOK/$PACKAGE/receipt
24 mv $SRC/$TARBALL $SRC/$PACKAGE-$ver.gz
25 fi
27 install -Dm644 $TARBALL $install/usr/share/hwdata/usb.ids.gz
28 }
30 genpkg_rules() {
31 copy @std
32 }