wok-next annotate usbids/receipt @ rev 19783
Up receipts to v2 syntax: cook_copy_files & cook_copy_folders -> copy
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Sun Jun 18 04:38:10 2017 +0300 (2017-06-18) |
parents | 18c4d15a72df |
children | c4e53a39395a |
rev | line source |
---|---|
slaxemulator@11045 | 1 # SliTaz package receipt. |
slaxemulator@11045 | 2 |
slaxemulator@11045 | 3 PACKAGE="usbids" |
al@19601 | 4 VERSION="20161205" |
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" |
pankso@16079 | 10 HOST_ARCH="i486 arm" |
slaxemulator@11045 | 11 |
al@19601 | 12 TARBALL="$PACKAGE-$VERSION.gz" |
al@19601 | 13 WGET_URL="http://www.linux-usb.org/usb.ids.gz" |
pascal@19247 | 14 |
pascal@19247 | 15 # Rules to configure and make the package. |
pascal@19247 | 16 compile_rules() |
pascal@19247 | 17 { |
al@19601 | 18 ver=$(zcat $TARBALL | fgrep '# Version:' | tr -cd '0-9') |
al@19601 | 19 separator |
al@19601 | 20 echo "Receipt version: $VERSION" |
al@19601 | 21 echo "Actual version: $ver" |
al@19601 | 22 separator |
al@19601 | 23 |
al@19601 | 24 mkdir -p $install/usr/share/misc |
al@19601 | 25 cp $src/$TARBALL $install/usr/share/misc/usb.ids.gz |
pascal@19247 | 26 } |
pascal@19247 | 27 |
slaxemulator@11045 | 28 # Rules to gen a SliTaz package suitable for Tazpkg. |
slaxemulator@11045 | 29 genpkg_rules() |
slaxemulator@11045 | 30 { |
al@19783 | 31 copy usb.ids.gz |
slaxemulator@11045 | 32 } |