PKGBUILDs/alarm/firmware-brcm43xx/PKGBUILD
Jeffrey Clark e7b19bb206 alarm/firmware-brcm43xx: Search harder for chip version
* Fixes finding chip on wandboard (mmc1) and possibly other devices
* Gracefully fail if a chip is not found.
2014-05-25 13:16:36 -05:00

53 lines
2.4 KiB
Bash

# Maintainer: Dave H <pepedog at archlinuxarm dot org>
buildarch=4
pkgname=firmware-brcm43xx
pkgdesc="bluetooth firmware and firware loading utility for the bcm43xx bluetooth"
pkgver=1.0
pkgrel=1
arch=('armv7h')
url="https://github.com/OpenBricks/openbricks/tree/master/packages/brcm-patchram-plus"
license=('apache' 'custom')
makedepends=('')
depends=('bluez-utils')
backup=('etc/conf.d/bcm43xx')
source=('https://raw.githubusercontent.com/OpenBricks/openbricks/master/packages/firmware-wifi-brcm80211/config/bcm4329_nvram.txt'
'https://raw.githubusercontent.com/OpenBricks/openbricks/master/packages/firmware-wifi-brcm80211/config/bcm4330_nvram.txt'
'https://raw.githubusercontent.com/OpenBricks/openbricks/master/packages/firmware-wifi-brcm80211/config/bcm4330_nvram.txt'
'https://github.com/OpenBricks/openbricks/raw/master/packages/brcm-patchram-plus/sources/bcm4329.hcd'
'https://github.com/OpenBricks/openbricks/raw/master/packages/brcm-patchram-plus/sources/bcm4330.hcd'
'https://raw.githubusercontent.com/OpenBricks/openbricks/master/packages/brcm-patchram-plus/sources/brcm_patchram_plus.c'
'start-brcm-patchram-plus'
'brcm43xx.service')
md5sums=('bf01292eec17815baa68a83d3d7722ad'
'31a9a011ce24707ed3c1024616c9005e'
'31a9a011ce24707ed3c1024616c9005e'
'ff27325602dc223203adfdd23a89844b'
'8e32f9168aaa540467589c153129c57a'
'627e9612337e5ef6027a87a79c491446'
'a7f6e574bc1097f0dd7e2e14ab7c95cf'
'f2eefa2042130e559b2d664a3fcc7b50')
build() {
cd "${srcdir}/"
gcc brcm_patchram_plus.c -o brcm_patchram_plus
}
package() {
cd "${srcdir}/"
mkdir -p ${pkgdir}/usr/lib/firmware/brcm
mkdir -p ${pkgdir}/usr/usr/bin
mkdir -p ${pkgdir}/etc/conf.d
mkdir -p ${pkgdir}/usr/lib/systemd/scripts
install -D -m0644 bcm4329_nvram.txt "${pkgdir}/usr/lib/firmware/brcm/brcmfmac4329-sdio.txt"
install -D -m0644 bcm4330_nvram.txt "${pkgdir}/usr/lib/firmware/brcm/brcmfmac4330-sdio.txt"
install -D -m0644 bcm4329.hcd "${pkgdir}/usr/lib/firmware/brcm/bcm4329.hcd"
install -D -m0644 bcm4330.hcd "${pkgdir}/usr/lib/firmware/brcm/bcm4330.hcd"
install -D -m0755 brcm_patchram_plus "${pkgdir}/usr/bin/brcm_patchram_plus"
install -D -m0644 bcm43xx "${pkgdir}/etc/conf.d/bcm43xx"
install -D -m0644 brcm43xx.service "${pkgdir}/usr/lib/systemd/system/brcm43xx.service"
install -D -m0755 start-brcm-patchram-plus "${pkgdir}/usr/lib/systemd/scripts/start-brcm-patchram-plus"
}