wok-6.x annotate firmware/receipt @ rev 25062
Up foomatic-db-nonfree (20210824)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Jun 07 10:29:31 2022 +0000 (2022-06-07) |
parents | 1bc6c02d5fdd |
children | c3a6f662a1c1 |
rev | line source |
---|---|
slaxemulator@9153 | 1 # SliTaz package receipt. |
slaxemulator@9153 | 2 |
slaxemulator@9153 | 3 PACKAGE="firmware" |
mojo@23773 | 4 VERSION="20200515" |
slaxemulator@9153 | 5 CATEGORY="meta" |
slaxemulator@9153 | 6 SHORT_DESC="Firmware files for Linux" |
mojo@20138 | 7 MAINTAINER="mojo@slitaz.org" |
pascal@15593 | 8 LICENSE="other" |
mojo@20138 | 9 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
mojo@17520 | 10 WEB_SITE="http://git.kernel.org/cgit/linux/kernel/git/firmware/linux-firmware.git" |
mojo@20138 | 11 WGET_URL="git|git://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git" |
mojo@20138 | 12 BUILD_DEPENDS="git" |
slaxemulator@9153 | 13 |
pascal@24439 | 14 # What is the latest version available today? |
pascal@24439 | 15 current_version() |
pascal@24439 | 16 { |
pascal@24439 | 17 wget -O - $WEB_SITE 2>/dev/null | \ |
pascal@24439 | 18 sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q |
pascal@24439 | 19 } |
pascal@24439 | 20 |
slaxemulator@9153 | 21 # Rules to configure and make the package. |
slaxemulator@9153 | 22 compile_rules() |
slaxemulator@9153 | 23 { |
mojo@20138 | 24 make install |
slaxemulator@9153 | 25 } |
slaxemulator@9153 | 26 |
slaxemulator@9153 | 27 # Rules to gen a SliTaz package suitable for Tazpkg. |
slaxemulator@9153 | 28 genpkg_rules() |
slaxemulator@9153 | 29 { |
mojo@20138 | 30 mkdir -p $install/usr/share/licenses |
mojo@20138 | 31 cp -a $src/LICENCE.* $install/usr/share/licenses |
slaxemulator@9153 | 32 } |
slaxemulator@9153 | 33 |