wok-next diff 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 diff
1.1 --- a/get-wifi-firmware/receipt Tue Jul 10 20:08:05 2018 +0300 1.2 +++ b/get-wifi-firmware/receipt Fri Nov 02 14:15:08 2018 +0200 1.3 @@ -1,28 +1,35 @@ 1.4 -# SliTaz package receipt. 1.5 +# SliTaz package receipt v2. 1.6 1.7 PACKAGE="get-wifi-firmware" 1.8 VERSION="2.0" 1.9 CATEGORY="non-free" 1.10 -SHORT_DESC="Get misc wifi firmwares." 1.11 +SHORT_DESC="Get misc Wi-Fi firmwares" 1.12 MAINTAINER="pascal.bellard@slitaz.org" 1.13 LICENSE="BSD" 1.14 WEB_SITE="http://hg.slitaz.org/wok/file/tip/$PACKAGE/stuff/$PACKAGE" 1.15 REPOLOGY="-" 1.16 1.17 -# Rules to gen a SliTaz package suitable for Tazpkg. 1.18 -genpkg_rules() 1.19 -{ 1.20 - mkdir -p $fs/usr/bin 1.21 - cp stuff/$PACKAGE $fs/usr/bin 1.22 - $fs/usr/bin/$PACKAGE --install 1.23 +compile_rules() { 1.24 + install $stuff/$PACKAGE $install/usr/bin/$PACKAGE 1.25 + 1.26 + $install/usr/bin/$PACKAGE --install 1.27 } 1.28 1.29 -post_install() 1.30 -{ 1.31 - install_resolver=false 1.32 - [ -s /etc/resolv.conf -a ! -s "$1/etc/resolv.conf" ] && install_resolver=true 1.33 +genpkg_rules() { 1.34 + copy @std 1.35 +} 1.36 + 1.37 +post_install() { 1.38 + if [ -s /etc/resolv.conf -a ! -s "$1/etc/resolv.conf" ]; then 1.39 + install_resolver=true 1.40 + else 1.41 + install_resolver=false 1.42 + fi 1.43 + 1.44 $install_resolver && cp /etc/resolv.conf "$1/etc/resolv.conf" 1.45 - # directly support some freely distributable firmware drivers 1.46 + 1.47 + # directly support some freely distributable firmware drivers 1.48 chroot "$1/" /usr/bin/get-wifi-firmware --get-free-firmware 1.49 + 1.50 $install_resolver && rm -f "$1/etc/resolv.conf" 1.51 }