wok-next view broadcom-wl/receipt @ rev 20200
libgnomeprint: add bison 3 patch
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Nov 03 17:38:15 2017 +0100 (2017-11-03) |
parents | 86d61e110274 |
children | d247e85339a4 |
line source
1 # SliTaz package receipt.
3 PACKAGE="broadcom-wl"
4 VERSION="6_30_223_271"
5 CATEGORY="network"
6 MAINTAINER="jozee@slitaz.org"
7 LICENSE="other"
8 SHORT_DESC="Broadcom 802.11abg Linux STA Networking Drivers"
9 WEB_SITE="http://www.broadcom.com/support/802.11/linux_sta.php"
10 TARBALL="hybrid-v35-nodebug-pcoem-$VERSION.tar.gz"
11 WGET_URL="https://docs.broadcom.com/docs-and-downloads/docs/linux_sta/$TARBALL"
12 TAGS="wireless wifi driver"
14 DEPENDS="linux"
15 BUILD_DEPENDS="linux-module-headers xz"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 sed -i 's/IEEE80211_BAND_/NL80211_BAND_/g' src/wl/sys/wl_cfg80211_hybrid.c
21 sed -i 's/rdtscl(cycles)/cycles = (u32)rdtsc()/' src/shared/linux_osl.c # for kernel > 4.3.0
22 KBUILD_NOPEDANTIC=1 make -C /usr/src/linux M=`pwd`
23 xz wl.ko
24 }
26 # Rules to gen a SliTaz package suitable for Tazpkg.
27 genpkg_rules()
28 {
29 EXTRAVERSION=_${kvers}
30 mkdir -p $fs/lib/modules/${kvers}-slitaz/kernel/drivers/net/wireless
31 # Compress and install module
32 install -o root -m 0644 $src/wl.ko.xz \
33 $fs/lib/modules/${kvers}-slitaz/kernel/drivers/net/wireless/wl.ko.xz
34 }
36 # Post install/remove commands for Tazpkg.
37 post_install()
38 {
39 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz
40 }
42 post_remove()
43 {
44 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz
45 }