wok-current view broadcom-wl/receipt @ rev 21047

updated imlib2 and imlib2-dev (1.4.6 -> 1.5.1)
author Hans-G?nter Theisgen
date Tue Mar 12 16:40:34 2019 +0100 (2019-03-12)
parents 10a263b71ff0
children 429cd2dffc4f
line source
1 # SliTaz package receipt.
3 PACKAGE="broadcom-wl"
4 VERSION="5_100_82_112"
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-portsrc_x86_32-v${VERSION}.tar.gz"
11 WGET_URL="http://www.broadcom.com/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|ndo_set_multicast_list|ndo_set_rx_mode|' src/wl/sys/wl_linux.c
21 sed -i 's|linux/autoconf.h|generated/autoconf.h|' src/include/linuxver.h
22 for i in semaphore 3.4.0 3.6.0 3.8.0 3.9.0 3.14.0 ; do
23 echo "patch $i ..."
24 patch -Np2 -i $stuff/$i.patch
25 done
26 KBUILD_NOPEDANTIC=1 make -C /usr/src/linux M=`pwd`
27 xz wl.ko
28 }
30 # Rules to gen a SliTaz package suitable for Tazpkg.
31 genpkg_rules()
32 {
33 EXTRAVERSION=_${kvers}
34 mkdir -p $fs/lib/modules/${kvers}-slitaz/kernel/drivers/net/wireless
35 # Compress and install module
36 install -o root -m 0644 $src/wl.ko.xz \
37 $fs/lib/modules/${kvers}-slitaz/kernel/drivers/net/wireless/wl.ko.xz
38 }
40 # Post install/remove commands for Tazpkg.
41 post_install()
42 {
43 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz
44 }
46 post_remove()
47 {
48 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz
49 }