wok-next annotate get-wifi-firmware/receipt @ rev 21313

updated iperf (2.0.5 -> 3.7)
author Hans-G?nter Theisgen
date Tue Dec 10 16:12:48 2019 +0100 (2019-12-10)
parents f56bd5e4256c
children
rev   line source
al@21020 1 # SliTaz package receipt v2.
pascal@1040 2
pascal@1040 3 PACKAGE="get-wifi-firmware"
jozee@5105 4 VERSION="2.0"
pascal@1040 5 CATEGORY="non-free"
al@21020 6 SHORT_DESC="Get misc Wi-Fi firmwares"
pascal@1040 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@15199 8 LICENSE="BSD"
pascal@2086 9 WEB_SITE="http://hg.slitaz.org/wok/file/tip/$PACKAGE/stuff/$PACKAGE"
al@21057 10 HOST_ARCH="any"
al@20882 11 REPOLOGY="-"
pascal@1040 12
al@21020 13 compile_rules() {
al@21049 14 install -Dm755 $stuff/$PACKAGE $install/usr/bin/$PACKAGE
al@21020 15
al@21020 16 $install/usr/bin/$PACKAGE --install
pascal@1040 17 }
jozee@5105 18
al@21020 19 post_install() {
al@21020 20 if [ -s /etc/resolv.conf -a ! -s "$1/etc/resolv.conf" ]; then
al@21020 21 install_resolver=true
al@21020 22 else
al@21020 23 install_resolver=false
al@21020 24 fi
al@21020 25
pascal@18730 26 $install_resolver && cp /etc/resolv.conf "$1/etc/resolv.conf"
al@21020 27
al@21020 28 # directly support some freely distributable firmware drivers
pascal@18730 29 chroot "$1/" /usr/bin/get-wifi-firmware --get-free-firmware
al@21020 30
pascal@18730 31 $install_resolver && rm -f "$1/etc/resolv.conf"
jozee@5105 32 }