core/broadcom-wl/PKGBUILD

47 lines
1.5 KiB
Bash
Raw Normal View History

#
# 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
2011-08-08 17:00:07 +08:00
_kernver=`pacman -Q linux | cut -c7-9 | sed 's/linux //g'`-CHAKRA
pkgname=broadcom-wl
pkgver=5.100.82.38
2011-08-08 17:00:07 +08:00
pkgrel=10
pkgdesc='Broadcom 802.11abgn hybrid Linux networking device driver'
2010-03-28 22:31:29 +08:00
arch=('i686' 'x86_64')
url='http://www.broadcom.com/support/802.11/linux_sta.php'
license=('custom')
2011-08-08 17:00:07 +08:00
depends=('linux>=3.0' 'linux<3.1')
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"
'license.patch'
'semaphore.patch'
'mutex-sema.patch')
sha1sums=('3062830f86c5f1f41d8a4b26d6e0072dc989c7ba'
'ea7b67982ddc0f56fd3becb9914fd4458fe7d373'
'105f8e1d48ebe1f25d53859e5ab9326a27435c66'
broadcom-wl: update phil@[chroot]:~/core-testing/broadcom-wl-lts$ ../fakeuname -r 2.6.35-CHAKRA-LTS ../makepkg ==> Running makepkg ver: 3.4.0-chakra-0.4 ==> Making package: broadcom-wl-lts 5.100.82.38-2 (Wed Mar 30 20:39:01 UTC 2011) ==> Checking Runtime Dependencies... ==> Checking Buildtime Dependencies... ==> Retrieving Sources... -> Found hybrid-portsrc_x86_32-v5_100_82_38.tar.gz -> Found license.patch -> Found semaphore.patch -> Found mutex-sema.patch ==> Validating source files with sha1sums... hybrid-portsrc_x86_32-v5_100_82_38.tar.gz ... Passed license.patch ... Passed semaphore.patch ... Passed mutex-sema.patch ... Passed ==> Extracting Sources... -> Extracting hybrid-portsrc_x86_32-v5_100_82_38.tar.gz with bsdtar ==> Removing existing pkg/ directory... ==> Starting build()... patching file src/wl/sys/wl_linux.c patching file src/wl/sys/wl_iw.h patching file src/wl/sys/wl_linux.c Hunk #1 succeeded at 483 (offset 1 line). make: Entering directory /usr/src/linux-2.6.35-CHAKRA-LTS' ==> Entering fakeroot environment... ==> Debug: sourcing ../_buildscripts/user.conf ==> Starting package()... ==> Tidying install... -> Removing doc files... -> Purging other files... -> Compressing man and info pages... -> Stripping unneeded symbols from binaries and libraries... ==> Creating package... -> Generating .PKGINFO file... -> Adding install script... -> Compressing package... ==> Signing package... -> Created signature file /home/phil/core-testing/_repo/local/broadcom-wl-lts-5.100.82.38-2-i686.pkg.tar.xz.sig. ==> Leaving fakeroot environment. ==> Finished making: broadcom-wl-lts 5.100.82.38-2 (Wed Mar 30 20:39:11 UTC 2011)
2011-03-31 04:40:21 +08:00
'97f2bcbbe3b9ac5d88e571fc536f5d59dbc789e1')
[ "$CARCH" = 'x86_64' ] && sha1sums[0]='6076de3bd8206b3e7b8bfc2eadbe3a97eec4e735'
install=install
2010-03-28 22:31:29 +08:00
build() {
cd "$srcdir"
patch -p1 < license.patch
patch -p1 < semaphore.patch
patch -p1 < mutex-sema.patch
make -C /lib/modules/$_kernver/build M=`pwd`
2011-01-06 05:42:40 +08:00
}
package() {
cd "$srcdir"
2011-03-31 05:37:47 +08:00
install -D -m 755 wl.ko "$pkgdir/lib/modules/$_kernver/kernel/drivers/net/wireless/wl.ko"
2011-01-06 05:42:40 +08:00
install -D -m 644 lib/LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}