wok view wireless-regdb/receipt @ rev 24304
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Jan 17 11:01:52 2022 +0000 (2022-01-17) |
parents | 212e026e2361 |
children | f2de156be422 |
line source
1 # SliTaz package receipt.
3 PACKAGE="wireless-regdb"
4 VERSION="2020.04.29"
5 CATEGORY="network"
6 SHORT_DESC="Linux wireless regulatory database."
7 MAINTAINER="al.bobylev@gmail.com"
8 LICENSE="free"
9 WEB_SITE="https://wireless.wiki.kernel.org/en/developers/regulatory/wireless-regdb"
11 TARBALL="$PACKAGE-$VERSION.tar.xz"
12 WGET_URL="https://www.kernel.org/pub/software/network/$PACKAGE/$TARBALL"
14 DEPENDS=""
15 BUILD_DEPENDS=""
17 # What is the latest version available today?
18 current_version()
19 {
20 wget -O - ${WGET_URL%/*} 2>/dev/null | \
21 sed "/$PACKAGE/!d;s|.*$PACKAGE-||;s|.tar.*||" | tail -n 1
22 }
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 : # nothing to be done
28 }
30 # Rules to gen a SliTaz package suitable for Tazpkg.
31 genpkg_rules()
32 {
33 mkdir -p $fs/usr/lib/crda/pubkeys
35 cp -a $src/*.pem $fs/usr/lib/crda/pubkeys
36 cp -a $src/*.bin $fs/usr/lib/crda
37 }