wok-current view usbids/receipt @ rev 25685
Add checkspace / fetchall feature for tazpkg
author | Stanislas Leduc <shann@slitaz.org> |
---|---|
date | Thu Mar 14 20:28:39 2024 +0000 (8 months ago) |
parents | 7aaca7142a16 |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="usbids"
4 VERSION="2022.08.01"
5 CATEGORY="misc"
6 SHORT_DESC="List of USB ID's."
7 MAINTAINER="slaxemulator@gmail.com"
8 LICENSE="PublicDomain"
9 WEB_SITE="http://www.linux-usb.org/usb-ids.html"
11 TARBALL="usb-$VERSION.ids.gz"
12 WGET_URL="http://www.linux-usb.org/usb.ids.gz"
14 BUILD_DEPENDS="advancecomp"
16 HOST_ARCH="i486 arm"
18 # What is the latest version available today?
19 current_version()
20 {
21 wget -O - http://www.linux-usb.org/usb.ids 2>/dev/null | \
22 sed '/^# Version/!d;s|.*: ||;q'
23 }
25 # Rules to configure and make the package.
26 compile_rules()
27 {
28 advdef -z4 usb-$VERSION.ids.gz
29 }
31 # Rules to gen a SliTaz package suitable for Tazpkg.
32 genpkg_rules()
33 {
34 mkdir -p $fs/usr/share/misc
35 cp $src/usb-$VERSION.ids.gz $fs/usr/share/misc/usb.ids.gz
36 }