wok-next annotate usbids/receipt @ rev 20674
Up putty (0.70)
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Sat May 12 05:17:48 2018 +0300 (2018-05-12) |
parents | c4e53a39395a |
children | 4be7000381e1 |
rev | line source |
---|---|
al@20647 | 1 # SliTaz package receipt v2. |
slaxemulator@11045 | 2 |
slaxemulator@11045 | 3 PACKAGE="usbids" |
al@20647 | 4 VERSION="20180414" |
slaxemulator@11045 | 5 CATEGORY="misc" |
al@17960 | 6 SHORT_DESC="List of USB ID's" |
slaxemulator@11045 | 7 MAINTAINER="slaxemulator@gmail.com" |
pascal@15611 | 8 LICENSE="PublicDomain" |
al@19601 | 9 WEB_SITE="http://www.linux-usb.org/usb-ids.html" |
slaxemulator@11045 | 10 |
al@19601 | 11 TARBALL="$PACKAGE-$VERSION.gz" |
al@19601 | 12 WGET_URL="http://www.linux-usb.org/usb.ids.gz" |
pascal@19247 | 13 |
al@20647 | 14 compile_rules() { |
al@19601 | 15 ver=$(zcat $TARBALL | fgrep '# Version:' | tr -cd '0-9') |
al@19601 | 16 separator |
al@19601 | 17 echo "Receipt version: $VERSION" |
al@19601 | 18 echo "Actual version: $ver" |
al@19601 | 19 separator |
al@19601 | 20 |
al@20647 | 21 if [ "$VERSION" != "$ver" ]; then |
al@20647 | 22 echo "Updating version" |
al@20647 | 23 sed -i "/^VERSION=/s|\".*\"|\"$ver\"|" $WOK/$PACKAGE/receipt |
al@20647 | 24 mv $SRC/$TARBALL $SRC/$PACKAGE-$ver.gz |
al@20647 | 25 fi |
al@20647 | 26 |
al@20647 | 27 install -Dm644 $TARBALL $install/usr/share/hwdata/usb.ids.gz |
pascal@19247 | 28 } |
pascal@19247 | 29 |
al@20647 | 30 genpkg_rules() { |
al@20647 | 31 copy @std |
slaxemulator@11045 | 32 } |