mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-01-24 02:22:15 +08:00
47 lines
1.5 KiB
Bash
47 lines
1.5 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
|
|
_kernver=`pacman -Qf kernel26 | cut -c10-15 | sed 's/kernel26 //g'`-CHAKRA
|
|
|
|
pkgname=broadcom-wl
|
|
pkgver=5.100.82.38
|
|
pkgrel=2
|
|
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=('kernel26>=2.6.38rc5')
|
|
makedepends=('kernel26-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"
|
|
'license.patch'
|
|
'semaphore.patch'
|
|
'mutex-sema.patch')
|
|
|
|
sha1sums=('3062830f86c5f1f41d8a4b26d6e0072dc989c7ba'
|
|
'ea7b67982ddc0f56fd3becb9914fd4458fe7d373'
|
|
'105f8e1d48ebe1f25d53859e5ab9326a27435c66'
|
|
'adf0138194ae204ad70ce44e98b2dc18ead4ae2a')
|
|
[ "$CARCH" = 'x86_64' ] && sha1sums[0]='6076de3bd8206b3e7b8bfc2eadbe3a97eec4e735'
|
|
|
|
install=install
|
|
|
|
build() {
|
|
cd "$srcdir"
|
|
patch -p1 < license.patch
|
|
patch -p1 < semaphore.patch
|
|
patch -p1 < mutex-sema.patch
|
|
make -C /lib/modules/$_kernver/build M=`pwd`
|
|
}
|
|
|
|
|
|
package() {
|
|
cd "$srcdir"
|
|
install -D -m 755 wl.ko "$pkgdir/lib/modules/`uname -r`/kernel/drivers/net/wireless/wl.ko"
|
|
install -D -m 644 lib/LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
|
|
} |