wok-next view broadcom-wl/receipt @ rev 20380

qtwebkit: up deps, cflags
author Xander Ziiryanoff <psychomaniak@xakep.ru>
date Mon Nov 27 13:21:54 2017 +0100 (2017-11-27)
parents 707694519e1e
children d5aab818505e
line source
1 # SliTaz package receipt.
3 PACKAGE="broadcom-wl"
4 VERSION="6_30_223_271"
5 EXTRAVERSION="_$kvers"
6 CATEGORY="network"
7 MAINTAINER="jozee@slitaz.org"
8 LICENSE="other"
9 SHORT_DESC="Broadcom 802.11abg Linux STA Networking Drivers"
10 WEB_SITE="http://www.broadcom.com/support/802.11/linux_sta.php"
11 TARBALL="hybrid-v35-nodebug-pcoem-$VERSION.tar.gz"
12 WGET_URL="https://docs.broadcom.com/docs-and-downloads/docs/linux_sta/$TARBALL"
13 TAGS="wireless wifi driver"
15 DEPENDS="linux"
16 BUILD_DEPENDS="linux-module-headers xz"
18 # Rules to configure and make the package.
19 compile_rules()
20 {
21 sed -i 's/IEEE80211_BAND_/NL80211_BAND_/g' src/wl/sys/wl_cfg80211_hybrid.c
22 sed -i 's/rdtscl(cycles)/cycles = (u32)rdtsc()/' src/shared/linux_osl.c # for kernel > 4.3.0
23 KBUILD_NOPEDANTIC=1 make -C /usr/src/linux M=`pwd`
24 xz wl.ko
25 }
27 # Rules to gen a SliTaz package suitable for Tazpkg.
28 genpkg_rules()
29 {
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 }