wok view broadcom-wl/receipt @ rev 11819

Up: seamonkey to 2.7.2.
author Christopher Rogers <slaxemulator@gmail.com>
date Sat Feb 25 14:15:40 2012 -0500 (2012-02-25)
parents ec697b8b2555
children 933dfe433303
line source
1 # SliTaz package receipt.
3 PACKAGE="broadcom-wl"
4 VERSION="5.60.246.2"
5 CATEGORY="network"
6 MAINTAINER="jozee@slitaz.org"
7 SHORT_DESC="Broadcom 802.11abg Linux STA Networking Drivers"
8 DEPENDS="linux"
9 BUILD_DEPENDS="linux-module-headers"
10 WEB_SITE="http://www.broadcom.com/support/802.11/linux_sta.php"
11 TARBALL="hybrid-portsrc_x86-32_v${VERSION}.tar.gz"
12 WGET_URL="http://www.broadcom.com/docs/linux_sta/$TARBALL"
13 TAGS="wireless wifi driver"
15 # Rules to configure and make the package.
17 compile_rules() {
19 cd $WOK/$PACKAGE
20 mkdir -p $PACKAGE-$VERSION
21 mv lib src Makefile $PACKAGE-$VERSION
22 cd $src
23 sed -i 's|linux/autoconf.h|generated/autoconf.h|' src/include/linuxver.h
24 patch -Np1 -i $stuff/semaphore.patch
25 KBUILD_NOPEDANTIC=1 make -C /usr/src/linux M=`pwd`
26 }
28 # Rules to gen a SliTaz package suitable for Tazpkg.
29 genpkg_rules()
30 {
31 KERNEL_VERSION=`grep ^VERSION= $WOK/linux/receipt | cut -d "=" -f2 | sed -e 's/"//g'`
32 EXTRAVERSION=_$KERNEL_VERSION
34 mkdir -p $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/drivers/net/wireless
36 # Compress and install module
37 lzma e $src/wl.ko $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/drivers/net/wireless/wl.ko.gz
38 chown root $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/drivers/net/wireless/wl.ko.gz
39 chmod 0644 $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/drivers/net/wireless/wl.ko.gz
40 }
42 # Post install/remove commands for Tazpkg.
43 post_install()
44 {
45 echo "Processing post-install commands..."
46 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz
47 }
49 post_remove()
50 {
51 echo "Processing post-remove commands..."
52 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz
53 }