mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-01-24 02:22:15 +08:00
36f61365d7
- update kernel to 3.2-series - extramodules get installed to '/lib/modules/' - tuxonice tools kept in kernel-dev for now
65 lines
2.1 KiB
Bash
65 lines
2.1 KiB
Bash
#
|
|
# Chakra Packages for Chakra, part of chakra-project.org
|
|
#
|
|
# maintainer (i686): Phil Miller <philm[at]chakra-project[dog]org>
|
|
# maintainer (x86_64): Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
|
|
|
|
# Find the kernel name inside the chroot
|
|
_extramodules=extramodules-`pacman -Q linux | cut -c7-9 | sed 's/linux //g'`-CHAKRA
|
|
_kver="$(cat /lib/modules/${_extramodules}/version)"
|
|
|
|
pkgname=broadcom-wl
|
|
pkgver=5.100.82.112
|
|
pkgrel=4
|
|
pkgdesc='Broadcom 802.11abgn hybrid Linux networking device driver'
|
|
arch=('i686' 'x86_64')
|
|
url='http://www.broadcom.com/support/802.11/linux_sta.php'
|
|
license=('custom')
|
|
depends=('linux>=3.2' 'linux<3.3')
|
|
makedepends=('linux-headers')
|
|
|
|
pkgdesc='Broadcom 802.11abgn hybrid Linux networking device driver'
|
|
url='http://www.broadcom.com/support/802.11/linux_sta.php'
|
|
arch=('i686' 'x86_64')
|
|
license=('custom')
|
|
depends=('linux')
|
|
makedepends=('linux-headers')
|
|
|
|
[[ $CARCH = x86_64 ]] && ARCH=x86_64 || ARCH=x86_32
|
|
source=("http://www.broadcom.com/docs/linux_sta/hybrid-portsrc_${ARCH}-v${pkgver//./_}.tar.gz"
|
|
'modprobe.d'
|
|
'linux3.patch'
|
|
'linux3.2.patch'
|
|
'license.patch'
|
|
'semaphore.patch')
|
|
sha1sums=('01aa32f9e85621253a3f15cf4361bb80d41da3e8'
|
|
'89bf92286ede30dd85304c6c4e42e89cfdc0f60a'
|
|
'3e18f905bbe5e8b99a53d6ecb3b80a919f3531f2'
|
|
'229f41b7c371842bf9c1c81b03f34ee32fcb3310'
|
|
'ea7b67982ddc0f56fd3becb9914fd4458fe7d373'
|
|
'105f8e1d48ebe1f25d53859e5ab9326a27435c66')
|
|
[[ $CARCH = x86_64 ]] && sha1sums[0]='5bd78c20324e6a4aa9f3fafdc6f0155e884d5131'
|
|
|
|
backup=('etc/modprobe.d/broadcom-wl.conf')
|
|
install=install
|
|
|
|
build() {
|
|
cd "${srcdir}"
|
|
|
|
patch -p1 -i linux3.patch
|
|
patch -p0 src/wl/sys/wl_linux.c < linux3.2.patch
|
|
patch -p1 -i license.patch
|
|
patch -p1 -i semaphore.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
|
|
} |