summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorSonic-Y3k2016-09-07 00:00:09 +0200
committerSonic-Y3k2016-09-07 00:00:09 +0200
commit0d454ba8bd2a204768fea707d05b2e9a67baa2ff (patch)
treedc871efe51296bbf96a638feece83dda83003479
parent76ddf3a3155e2655b160f465eb42488e7837af43 (diff)
downloadaur-0d454ba8bd2a204768fea707d05b2e9a67baa2ff.tar.gz
Updated to newer bluetooth version\; rewrite of PKGBUILD.
-rw-r--r--.SRCINFO32
-rw-r--r--PKGBUILD111
-rw-r--r--filelist.txt104
3 files changed, 219 insertions, 28 deletions
diff --git a/.SRCINFO b/.SRCINFO
index a811e5bec8b..61d6bb6905b 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,16 +1,32 @@
-pkgbase = bcm20702a1-firmware
- pkgdesc = Broadcom bluetooth firmware for BCM20702A1 based devices (0b05:17cb, 0b05:17cf, 0a5c:21e1, 0a5c:21e6, 0a5c:21e8, 0a5c:216f)
- pkgver = 1201650
- pkgrel = 6
+pkgbase = bcm4335c0-firmware
+ pkgdesc = Broadcom bluetooth firmware.
+ pkgver = 1201710
+ pkgrel = 1
url = http://asus.com
arch = any
license = Custom
makedepends = bluez-utils
conflicts = bt-dw1560-firmware
- source = http://dlcdnet.asus.com/pub/ASUS/misc/BT/Bluetooth_V1201650_WHQL_Win10.zip
- source = BCM20702A1-0a5c-21e8.hcd::https://s3.amazonaws.com/plugable/bin/fw-0a5c_21e8.hcd
- sha256sums = b8863fdb2f397c1ca7264fd4a0f457c2f9ab90350338e476128fb241720e32ad
- sha256sums = d699c13fe1e20c068a8a88dbbed49edc12527b0ceeeaac3411e3298573451536
+ source = http://dlcdnet.asus.com/pub/ASUS/wireless/USB-BT400/DR_USB_BT400_1201710_Windows.zip
+ source = filelist.txt
+ sha256sums = a84889e296add13cae389524b790133519666826ba899c6f82cd6528a80fefcb
+ sha256sums = 03c49bf2e59cf341723ff40a23335c35c432a7c14f652aefae2060d8048624a9
+
+pkgname = bcm4335c0-firmware
+ pkgdesc = Broadcom bluetooth firmware for BCM4335C0 based devices.
+
+pkgname = bcm4350c5-firmware
+ pkgdesc = Broadcom bluetooth firmware for BCM4350C5 based devices.
+
+pkgname = bcn4356a2-firmware
+ pkgdesc = Broadcom bluetooth firmware for BCM4356A2 based devices.
pkgname = bcm20702a1-firmware
+ pkgdesc = Broadcom bluetooth firmware for BCM20702A1 based devices.
+
+pkgname = bcm20702b0-firmware
+ pkgdesc = Broadcom bluetooth firmware for BCM20702B0 based devices.
+
+pkgname = bcm43142a0-firmware
+ pkgdesc = Broadcom bluetooth firmware for BCM43142A0 based devices.
diff --git a/PKGBUILD b/PKGBUILD
index 28a8eb36d93..fb632f5a056 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,35 +2,106 @@
# Contributor: Christopher Reimer <archlinux@tjbp.net>
# Contributor: Christoph Hoopmann <christophhoopmann@gmail.com>
-pkgname=bcm20702a1-firmware
-pkgver=1201650
-pkgrel=6
-pkgdesc="Broadcom bluetooth firmware for BCM20702A1 based devices (0b05:17cb, 0b05:17cf, 0a5c:21e1, 0a5c:21e6, 0a5c:21e8, 0a5c:216f)"
+pkgname=('bcm4335c0-firmware' 'bcm4350c5-firmware' 'bcn4356a2-firmware' 'bcm20702a1-firmware' 'bcm20702b0-firmware' 'bcm43142a0-firmware')
+pkgver=1201710
+pkgrel=1
arch=('any')
+pkgdesc="Broadcom bluetooth firmware."
url="http://asus.com"
license=("Custom")
makedepends=('bluez-utils')
conflicts=('bt-dw1560-firmware')
-source=("http://dlcdnet.asus.com/pub/ASUS/misc/BT/Bluetooth_V${pkgver}_WHQL_Win10.zip"
- "BCM20702A1-0a5c-21e8.hcd::https://s3.amazonaws.com/plugable/bin/fw-0a5c_21e8.hcd")
-sha256sums=('b8863fdb2f397c1ca7264fd4a0f457c2f9ab90350338e476128fb241720e32ad'
- 'd699c13fe1e20c068a8a88dbbed49edc12527b0ceeeaac3411e3298573451536')
+source=("http://dlcdnet.asus.com/pub/ASUS/wireless/USB-BT400/DR_USB_BT400_${pkgver}_Windows.zip"
+ "filelist.txt")
+sha256sums=('a84889e296add13cae389524b790133519666826ba899c6f82cd6528a80fefcb'
+ '03c49bf2e59cf341723ff40a23335c35c432a7c14f652aefae2060d8048624a9')
build() {
- hex2hcd "$srcdir/Bluetooth/BCM_DriverOnly/64/BCM20702A1_001.002.014.1443.1467.hex" -o "${srcdir}/BCM20702A1-0b05-17cb.hcd"
- hex2hcd "$srcdir/Bluetooth/BCM_DriverOnly/64/BCM20702A1_001.002.014.1443.1469.hex" -o "${srcdir}/BCM20702A1-0b05-17cf.hcd"
- hex2hcd "$srcdir/Bluetooth/BCM_DriverOnly/64/BCM20702A1_001.002.014.1483.1647.hex" -o "${srcdir}/BCM20702A0-0a5c-21e1.hcd"
- hex2hcd "$srcdir/Bluetooth/BCM_DriverOnly/64/BCM20702A1_001.002.014.1483.1669.hex" -o "${srcdir}/BCM20702A1-0a5c-21e6.hcd"
- hex2hcd "$srcdir/Bluetooth/BCM_DriverOnly/64/BCM20702A1_001.002.014.1443.1572.hex" -o "${srcdir}/BCM20702A1-0a5c-216f.hcd"
+ cd "${srcdir}"
+
+ while read p; do
+ filename=$(echo $p|awk -F':' '{print $3}'|sed 's% %%g')
+ bcm=$(echo $filename|awk -F'_' '{print $1}')
+ vid=$(echo $p|awk -F':' '{print $1}'|awk '{print tolower($0)}')
+ pid=$(echo $p|awk -F':' '{print $2}'|awk '{print tolower($0)}')
+ hex2hcd "$srcdir/Win10_USB-BT400_DRIVERS/Win10_USB-BT400_Driver_Package/64/$filename" -o "$bcm-$vid-$pid.hcd"
+ done < "${srcdir}/filelist.txt"
+}
+
+package_bcm4335c0-firmware() {
+ pkgdesc="Broadcom bluetooth firmware for BCM4335C0 based devices."
+
+ cd "${srcdir}"
+ mkdir -p ${pkgdir}/usr/lib/firmware/brcm
+
+ for i in BCM4335C0-*.hcd; do
+ install -m644 "${srcdir}/$i" "${pkgdir}/usr/lib/firmware/brcm/$i"
+ done
}
-package() {
+package_bcm4350c5-firmware() {
+ pkgdesc="Broadcom bluetooth firmware for BCM4350C5 based devices."
+
+ cd "${srcdir}"
+ mkdir -p ${pkgdir}/usr/lib/firmware/brcm
+
+ for i in BCM4350C5-*.hcd; do
+ install -m644 "${srcdir}/$i" "${pkgdir}/usr/lib/firmware/brcm/$i"
+ done
+}
+
+package_bcn4356a2-firmware() {
+ pkgdesc="Broadcom bluetooth firmware for BCM4356A2 based devices."
+
+ cd "${srcdir}"
+ mkdir -p ${pkgdir}/usr/lib/firmware/brcm
+
+ for i in BCM4356A2-*.hcd; do
+ install -m644 "${srcdir}/$i" "${pkgdir}/usr/lib/firmware/brcm/$i"
+ done
+}
+
+package_bcm20702a1-firmware() {
+ pkgdesc="Broadcom bluetooth firmware for BCM20702A1 based devices."
+
+ cd "${srcdir}"
+ mkdir -p ${pkgdir}/usr/lib/firmware/brcm
+
+ for i in BCM20702A1-*.hcd; do
+ install -m644 "${srcdir}/$i" "${pkgdir}/usr/lib/firmware/brcm/$i"
+ done
+}
+
+package_bcm20702a0-firmware() {
+ pkgdesc="Broadcom bluetooth firmware for BCM20702A0 based devices."
+
+ cd "${srcdir}"
+ mkdir -p ${pkgdir}/usr/lib/firmware/brcm
+
+ for i in BCM20702A0-*.hcd; do
+ install -m644 "${srcdir}/$i" "${pkgdir}/usr/lib/firmware/brcm/$i"
+ done
+}
+
+package_bcm20702b0-firmware() {
+ pkgdesc="Broadcom bluetooth firmware for BCM20702B0 based devices."
+
+ cd "${srcdir}"
+ mkdir -p ${pkgdir}/usr/lib/firmware/brcm
+
+ for i in BCM20702B0-*.hcd; do
+ install -m644 "${srcdir}/$i" "${pkgdir}/usr/lib/firmware/brcm/$i"
+ done
+}
+
+package_bcm43142a0-firmware() {
+ pkgdesc="Broadcom bluetooth firmware for BCM43142A0 based devices."
+
+ cd "${srcdir}"
mkdir -p ${pkgdir}/usr/lib/firmware/brcm
- install -m644 "${srcdir}/BCM20702A1-0b05-17cb.hcd" "${pkgdir}/usr/lib/firmware/brcm/BCM20702A1-0b05-17cb.hcd"
- install -m644 "${srcdir}/BCM20702A1-0b05-17cf.hcd" "${pkgdir}/usr/lib/firmware/brcm/BCM20702A1-0b05-17cf.hcd"
- install -m644 "${srcdir}/BCM20702A0-0a5c-21e1.hcd" "${pkgdir}/usr/lib/firmware/brcm/BCM20702A0-0a5c-21e1.hcd"
- install -m644 "${srcdir}/BCM20702A1-0a5c-21e6.hcd" "${pkgdir}/usr/lib/firmware/brcm/BCM20702A1-0a5c-21e6.hcd"
- install -m644 "${srcdir}/BCM20702A1-0a5c-21e8.hcd" "${pkgdir}/usr/lib/firmware/brcm/BCM20702A1-0a5c-21e8.hcd"
- install -m644 "${srcdir}/BCM20702A1-0a5c-216f.hcd" "${pkgdir}/usr/lib/firmware/brcm/BCM20702A1-0a5c-216f.hcd"
+
+ for i in BCM43142A0-*.hcd; do
+ install -m644 "${srcdir}/$i" "${pkgdir}/usr/lib/firmware/brcm/$i"
+ done
}
diff --git a/filelist.txt b/filelist.txt
new file mode 100644
index 00000000000..39eef543b53
--- /dev/null
+++ b/filelist.txt
@@ -0,0 +1,104 @@
+0489:E047: BCM20702A1_001.002.014.1055.1061.hex
+413C:8197: BCM20702A1_001.002.014.1443.1447.hex
+413C:8143: BCM20702A1_001.002.014.1443.1449.hex
+13D3:3411: BCM20702A1_001.002.014.1443.1450.hex
+0A5C:21E8: BCM20702A1_001.002.014.1443.1459.hex
+0A5C:21EC: BCM20702A1_001.002.014.1443.1460.hex
+0A5C:21DE: BCM20702A1_001.002.014.1443.1461.hex
+0A5C:2169: BCM20702A1_001.002.014.1443.1462.hex
+0A5C:21FD: BCM20702A1_001.002.014.1443.1463.hex
+0489:E046: BCM20702A1_001.002.014.1443.1465.hex
+0489:E059: BCM20702A1_001.002.014.1443.1466.hex
+0B05:17CB: BCM20702A1_001.002.014.1443.1467.hex
+0B05:17B5: BCM20702A1_001.002.014.1443.1468.hex
+0B05:17CF: BCM20702A1_001.002.014.1443.1469.hex
+13D3:3384: BCM20702A1_001.002.014.1443.1477.hex
+13D3:3392: BCM20702A1_001.002.014.1443.1478.hex
+13D3:3404: BCM20702A1_001.002.014.1443.1479.hex
+13D3:3418: BCM20702A1_001.002.014.1443.1480.hex
+13D3:3413: BCM20702A1_001.002.014.1443.1481.hex
+050D:065A: BCM20702A1_001.002.014.1443.1482.hex
+145F:01A3: BCM20702A1_001.002.014.1443.1483.hex
+0489:E042: BCM20702A1_001.002.014.1443.1484.hex
+0489:E032: BCM20702A1_001.002.014.1443.1485.hex
+0489:E04F: BCM20702A1_001.002.014.1443.1486.hex
+105B:E066: BCM20702A1_001.002.014.1443.1487.hex
+04CA:2003: BCM20702A1_001.002.014.1443.1488.hex
+04CA:2004: BCM20702A1_001.002.014.1443.1489.hex
+04CA:2005: BCM20702A1_001.002.014.1443.1490.hex
+04CA:200A: BCM20702A1_001.002.014.1443.1492.hex
+04CA:200B: BCM20702A1_001.002.014.1443.1493.hex
+04CA:200C: BCM20702A1_001.002.014.1443.1494.hex
+04CA:200E: BCM20702A1_001.002.014.1443.1499.hex
+13D3:3435: BCM20702A1_001.002.014.1443.1501.hex
+13D3:3456: BCM20702A1_001.002.014.1443.1502.hex
+04CA:200F: BCM20702A1_001.002.014.1443.1521.hex
+0489:E087: BCM20702A1_001.002.014.1443.1532.hex
+0A5C:216F: BCM20702A1_001.002.014.1443.1572.hex
+0B05:180A: BCM20702A1_001.002.014.1443.1714.hex
+0A5C:21F1: BCM20702A1_001.002.014.1483.1645.hex
+0A5C:216B: BCM20702A1_001.002.014.1483.1646.hex
+0A5C:21E1: BCM20702A1_001.002.014.1483.1647.hex
+0A5C:21FB: BCM20702A1_001.002.014.1483.1648.hex
+0A5C:21E3: BCM20702A1_001.002.014.1483.1649.hex
+0489:E07A: BCM20702A1_001.002.014.1483.1651.hex
+0489:E052: BCM20702A1_001.002.014.1483.1668.hex
+0A5C:21E6: BCM20702A1_001.002.014.1483.1669.hex
+0A5C:21F4: BCM20702A1_001.002.014.1483.1670.hex
+0A5C:21F3: BCM20702A1_001.002.014.1483.1671.hex
+0930:021E: BCM20702A1_001.002.014.1483.1672.hex
+0930:0221: BCM20702A1_001.002.014.1483.1673.hex
+0930:0223: BCM20702A1_001.002.014.1483.1674.hex
+0A5C:640B: BCM20702A1_001.002.014.1483.1709.hex
+19FF:0239: BCM20702B0_002.001.014.0527.0557.hex
+0A5C:6410: BCM20703A1_001.001.005.0197.0375.hex
+0A5C:21FE: BCM43142A0_001.001.011.0161.0186.hex
+0A5C:21DC: BCM43142A0_001.001.011.0161.0187.hex
+0A5C:21D3: BCM43142A0_001.001.011.0197.0218.hex
+0A5C:21D6: BCM43142A0_001.001.011.0197.0220.hex
+0A5C:21D8: BCM43142A0_001.001.011.0197.0222.hex
+0A5C:2167: BCM43142A0_001.001.011.0249.0265.hex
+04CA:2007: BCM43142A0_001.001.011.0277.0279.hex
+0489:E062: BCM43142A0_001.001.011.0277.0280.hex
+185F:2167: BCM43142A0_001.001.011.0277.0292.hex
+13D3:3484: BCM43142A0_001.001.011.0277.0302.hex
+13D3:3482: BCM43142A0_001.001.011.0277.0304.hex
+04F2:B49D: BCM43142A0_001.001.011.0277.0308.hex
+105B:E065: BCM43142A0_001.001.011.0311.0312.hex
+04F2:B4A1: BCM43142A0_001.001.011.0311.0316.hex
+04CA:2006: BCM43142A0_001.001.011.0311.0327.hex
+0A5C:216C: BCM43142A0_001.001.011.0311.0328.hex
+0A5C:216D: BCM43142A0_001.001.011.0311.0329.hex
+04CA:2009: BCM43142A0_001.001.011.0311.0330.hex
+0489:E055: BCM43142A0_001.001.011.0311.0331.hex
+13D3:3388: BCM43142A0_001.001.011.0311.0332.hex
+13D3:3389: BCM43142A0_001.001.011.0311.0333.hex
+0930:0225: BCM43142A0_001.001.011.0311.0334.hex
+0930:0226: BCM43142A0_001.001.011.0311.0334.hex
+13D3:3427: BCM43142A0_001.001.011.0311.0334.hex
+0930:021F: BCM43142A0_001.001.011.0311.0335.hex
+0A5C:216A: BCM43142A0_001.001.011.0311.0336.hex
+04CA:2012: BCM43142A0_001.001.011.0311.0339.hex
+0489:E096: BCM43142A0_001.001.011.0311.0340.hex
+0A5C:21D7: BCM43142A0_001.001.011.0311.0341.hex
+0930:0229: BCM4335C0_003.001.009.0066.0104.hex
+0A5C:216E: BCM4335C0_003.001.009.0066.0105.hex
+0A5C:2168: BCM4335C0_003.001.009.0066.0108.hex
+0489:E079: BCM4335C0_003.001.009.0066.0115.hex
+04CA:2016: BCM4335C0_003.001.009.0066.0121.hex
+0A5C:6414: BCM4350C5_003.006.007.0095.1668.hex
+0A5C:6412: BCM4350C5_003.006.007.0095.1703.hex
+0A5C:6413: BCM4350C5_003.006.007.0095.1704.hex
+0489:E097: BCM4356A2_001.003.015.0046.0104.hex
+04CA:2014: BCM4356A2_001.003.015.0046.0120.hex
+04CA:2013: BCM4356A2_001.003.015.0046.0122.hex
+13D3:3473: BCM4356A2_001.003.015.0046.0125.hex
+13D3:3488: BCM4356A2_001.003.015.0046.0127.hex
+0B05:181D: BCM4356A2_001.003.015.0046.0132.hex
+2B54:5600: BCM4356A2_001.003.015.0046.0154.hex
+2B54:5601: BCM4356A2_001.003.015.0046.0162.hex
+04F2:B4A2: BCM4356A2_001.003.015.0046.0183.hex
+13D3:3492: BCM4356A2_001.003.015.0046.0195.hex
+13D3:3485: BCM4356A2_001.003.015.0046.0197.hex
+0A5C:640A: BCM4356A2_001.003.015.0080.0225.hex
+0A5C:640E: BCM4356A2_001.003.015.0080.0225.hex