wok-next view 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
line source
1 # SliTaz package receipt v2.
3 PACKAGE="get-wifi-firmware"
4 VERSION="2.0"
5 CATEGORY="non-free"
6 SHORT_DESC="Get misc Wi-Fi firmwares"
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="BSD"
9 WEB_SITE="http://hg.slitaz.org/wok/file/tip/$PACKAGE/stuff/$PACKAGE"
10 REPOLOGY="-"
12 compile_rules() {
13 install $stuff/$PACKAGE $install/usr/bin/$PACKAGE
15 $install/usr/bin/$PACKAGE --install
16 }
18 genpkg_rules() {
19 copy @std
20 }
22 post_install() {
23 if [ -s /etc/resolv.conf -a ! -s "$1/etc/resolv.conf" ]; then
24 install_resolver=true
25 else
26 install_resolver=false
27 fi
29 $install_resolver && cp /etc/resolv.conf "$1/etc/resolv.conf"
31 # directly support some freely distributable firmware drivers
32 chroot "$1/" /usr/bin/get-wifi-firmware --get-free-firmware
34 $install_resolver && rm -f "$1/etc/resolv.conf"
35 }