# Maintainer: Ben Merritt # Contributor: Jesse Jaara pkgname=pi-bluetooth pkgver=1.2_4 pkgrel=1 pkgdesc="Firmware and services to get integrated Bluetooth running on Raspberry Pi 3" arch=('armv6h' 'armv7h' 'aarch64') url="" license=('multiple') depends=('bluez-utils-compat') install=pi-bluetooth.install _commitid=96eefffcccc725425fd83be5e0704a5c32b79e54 source=( https://raw.githubusercontent.com/RPi-Distro/bluez-firmware/$_commitid/broadcom/BCM43430A1.hcd https://raw.githubusercontent.com/RPi-Distro/bluez-firmware/$_commitid/broadcom/BCM4345C0.hcd LICENCE.broadcom_bcm43xx brcm43438.service ) sha256sums=( '8dd70b9003d39cb6175b4f3cd509666dad66ad23d3be1a68385817fb814c8930' 'd09ce049f65619f007d604069d2b4d2a3ffe3cf897245287ef379955ce3969de' 'b16056fc91b82a0e3e8de8f86c2dac98201aa9dc3cbd33e8d38f1b087fcec30d' 'b55d7bb9746aa0e8e35a1780f49d072243eecd332b4927357693ffc33a189d2d' ) package() { cd "${srcdir}" mkdir -p "${pkgdir}/usr/lib/firmware" mkdir -p "${pkgdir}/usr/share/licences" mkdir -p "${pkgdir}/usr/lib/systemd/system" cp BCM43430A1.hcd BCM4345C0.hcd "${pkgdir}/usr/lib/firmware/" cp LICENCE.broadcom_bcm43xx "${pkgdir}/usr/share/licences/" cp brcm43438.service "${pkgdir}/usr/lib/systemd/system/" } # TODO: figure out if we can use the newer btattach command and drop the dependency on bluez-utils-compat. # See sources: # * https://wiki.gentoo.org/wiki/Raspberry_Pi_3_64_bit_Install#Install_Bluetooth_firmware # * https://forums.gentoo.org/viewtopic-p-8220298.html#8220298