core/broadcom-wl/PKGBUILD
2012-11-22 02:12:02 +00:00

52 lines
1.5 KiB
Bash

#
# Chakra Packages for Chakra, part of chakra-project.org
#
# maintainer abveritas@chakra-project.org
# Find the kernel name inside the chroot
_extramodules=extramodules-3.6-CHAKRA
_kver="$(cat /lib/modules/${_extramodules}/version)"
pkgname=broadcom-wl
pkgver=5.100.82.112
pkgrel=13
pkgdesc='Broadcom 802.11abgn hybrid Linux networking device driver'
arch=('x86_64')
url='http://www.broadcom.com/support/802.11/linux_sta.php'
license=('custom')
depends=('linux>=3.6' 'linux<3.7')
makedepends=('linux-headers')
source=("http://www.broadcom.com/docs/linux_sta/hybrid-portsrc_x86_64-v${pkgver//./_}.tar.gz"
'modprobe.d'
'license.patch'
'user-ioctl.patch'
'linux-recent.patch')
sha1sums=('5bd78c20324e6a4aa9f3fafdc6f0155e884d5131'
'89bf92286ede30dd85304c6c4e42e89cfdc0f60a'
'ea7b67982ddc0f56fd3becb9914fd4458fe7d373'
'e0366dd15ea5b25aae0f61bec6be7a203dfca7e4'
'df3cd65e24beed349a40abcf476bdaa82bbc57d3')
backup=('etc/modprobe.d/broadcom-wl.conf')
install=install
build() {
cd "${srcdir}"
patch -p1 -i license.patch
patch -p1 -i linux-recent.patch
patch -p1 -i user-ioctl.patch
make -C /lib/modules/"${_kver}"/build M=`pwd`
}
package() {
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
}