PKGBUILD 1.57 KB
Newer Older
1 2 3
#
# Chakra Packages for Chakra, part of chakra-project.org
#
4
# Find the kernel name inside the chroot
Manuel's avatar
Manuel committed
5
_extramodules=extramodules-3.8-CHAKRA
Manuel's avatar
Manuel committed
6
_kernver="$(cat /lib/modules/${_extramodules}/version)"
7

8
pkgname=broadcom-wl
Phil's avatar
Phil committed
9
pkgver=5.100.82.112
Manuel's avatar
Manuel committed
10
pkgrel=17
11
pkgdesc='Broadcom 802.11abgn hybrid Linux networking device driver'
12
url='http://www.broadcom.com/support/802.11/linux_sta.php'
Manuel's avatar
Manuel committed
13
arch=('i686' 'x86_64')
14
license=('custom')
Manuel's avatar
Manuel committed
15
depends=('linux')
philm's avatar
philm committed
16 17
makedepends=('linux-headers')

Manuel's avatar
Manuel committed
18 19
[[ $CARCH = x86_64 ]] && ARCH=x86_64 || ARCH=x86_32
source=("http://www.broadcom.com/docs/linux_sta/hybrid-portsrc_${ARCH}-v${pkgver//./_}.tar.gz"
philm's avatar
philm committed
20
        'modprobe.d'
21
        'license.patch'
22 23
        'user-ioctl.patch'
        'linux-recent.patch')
Manuel's avatar
Manuel committed
24
sha1sums=('01aa32f9e85621253a3f15cf4361bb80d41da3e8'
philm's avatar
philm committed
25
          '89bf92286ede30dd85304c6c4e42e89cfdc0f60a'
26
          'ea7b67982ddc0f56fd3becb9914fd4458fe7d373'
Manuel's avatar
Manuel committed
27 28 29
          'a41f11ffc18dbb126176259e02dd93b6ade04a10'
          '64f99cde29168e7bd8508af30702c68f907556d9')
[[ $CARCH = x86_64 ]] && sha1sums[0]='5bd78c20324e6a4aa9f3fafdc6f0155e884d5131'
30

philm's avatar
philm committed
31
backup=('etc/modprobe.d/broadcom-wl.conf')
32
install=install
Jan Mette's avatar
Jan Mette committed
33 34

build() {
philm's avatar
philm committed
35 36
	cd "${srcdir}"

37 38
	patch -p1 -i linux-recent.patch
	patch -p1 -i user-ioctl.patch
Manuel's avatar
Manuel committed
39
	patch -p1 -i license.patch
philm's avatar
philm committed
40

Manuel's avatar
Manuel committed
41
	make -C /lib/modules/"${_kernver}"/build M=`pwd`
philm's avatar
philm committed
42
}
philm's avatar
philm committed
43 44

package() {
philm's avatar
philm committed
45 46 47 48 49 50 51
	cd "${srcdir}"

	install -D -m 755 wl.ko "${pkgdir}/lib/modules/${_extramodules}/wl.ko"
	gzip "${pkgdir}/lib/modules/${_extramodules}/wl.ko"

	install -D -m 644 lib/LICENSE.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
	install -D -m 644 modprobe.d "${pkgdir}"/etc/modprobe.d/broadcom-wl.conf
Manuel's avatar
Manuel committed
52
}