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

Cleaning is almost finished... I should proceed to upgrades.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Nov 02 14:15:08 2018 +0200 (2018-11-02)
parents d958fec46c9f
children f56bd5e4256c
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@20882 10 REPOLOGY="-"
pascal@1040 11
al@21020 12 compile_rules() {
al@21020 13 install $stuff/$PACKAGE $install/usr/bin/$PACKAGE
al@21020 14
al@21020 15 $install/usr/bin/$PACKAGE --install
pascal@1040 16 }
jozee@5105 17
al@21020 18 genpkg_rules() {
al@21020 19 copy @std
al@21020 20 }
al@21020 21
al@21020 22 post_install() {
al@21020 23 if [ -s /etc/resolv.conf -a ! -s "$1/etc/resolv.conf" ]; then
al@21020 24 install_resolver=true
al@21020 25 else
al@21020 26 install_resolver=false
al@21020 27 fi
al@21020 28
pascal@18730 29 $install_resolver && cp /etc/resolv.conf "$1/etc/resolv.conf"
al@21020 30
al@21020 31 # directly support some freely distributable firmware drivers
pascal@18730 32 chroot "$1/" /usr/bin/get-wifi-firmware --get-free-firmware
al@21020 33
pascal@18730 34 $install_resolver && rm -f "$1/etc/resolv.conf"
jozee@5105 35 }