PKGBUILD 1.49 KB
Newer Older
1 2 3
#
# Chakra Packages for Chakra, part of chakra-project.org
#
4
# maintainer abveritas@chakra-project.org
5

6
# Find the kernel name inside the chroot
7
_extramodules=extramodules-3.7-CHAKRA
philm's avatar
philm committed
8
_kver="$(cat /lib/modules/${_extramodules}/version)"
9

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

20
source=("http://www.broadcom.com/docs/linux_sta/hybrid-portsrc_x86_64-v${pkgver//./_}.tar.gz"
philm's avatar
philm committed
21
        'modprobe.d'
22
        'license.patch'
23 24 25
        'user-ioctl.patch'
        'linux-recent.patch')
sha1sums=('5bd78c20324e6a4aa9f3fafdc6f0155e884d5131'
philm's avatar
philm committed
26
          '89bf92286ede30dd85304c6c4e42e89cfdc0f60a'
27
          'ea7b67982ddc0f56fd3becb9914fd4458fe7d373'
28 29
          'e0366dd15ea5b25aae0f61bec6be7a203dfca7e4'
          'df3cd65e24beed349a40abcf476bdaa82bbc57d3')
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 37
	cd "${srcdir}"

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

philm's avatar
philm committed
41 42
	make -C /lib/modules/"${_kver}"/build M=`pwd`
}
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
52
}