2022-05-05 17:35:19 +00:00
|
|
|
# Maintainer: graysky <therealgraysky AT protonmail DOT com>
|
2022-03-28 13:06:47 +00:00
|
|
|
# Maintainer: Kevin Mihelich <kevin@archlinuxarm.org>
|
|
|
|
# Contributor: Ray Sherwin <sliick517d@gmail.com>
|
2017-09-10 16:06:48 +00:00
|
|
|
|
|
|
|
pkgname=firmware-raspberrypi
|
2024-08-31 12:00:56 +00:00
|
|
|
_firmcommit=4b356e134e8333d073bd3802d767a825adec3807
|
2024-09-01 11:04:26 +00:00
|
|
|
_bluezcommit=78d6a07730e2d20c035899521ab67726dc028e1c
|
2024-08-31 12:00:56 +00:00
|
|
|
pkgver=20240831
|
2024-09-01 11:04:26 +00:00
|
|
|
pkgrel=2
|
2017-09-10 16:06:48 +00:00
|
|
|
pkgdesc="Additional firmware for Raspberry Pi"
|
2018-02-08 00:29:33 +00:00
|
|
|
arch=('any')
|
2022-03-28 13:06:47 +00:00
|
|
|
url="https://github.com/RPi-Distro/firmware-nonfree"
|
2017-09-10 16:06:48 +00:00
|
|
|
license=('custom')
|
2022-03-28 14:53:31 +00:00
|
|
|
makedepends=('git')
|
2017-09-10 16:06:48 +00:00
|
|
|
options=('!strip')
|
2022-03-28 13:06:47 +00:00
|
|
|
source=("git+https://github.com/RPi-Distro/firmware-nonfree.git#commit=$_firmcommit"
|
|
|
|
# support for which device?
|
2024-09-01 11:04:26 +00:00
|
|
|
"BCM4345C5.hcd::https://raw.githubusercontent.com/RPi-Distro/bluez-firmware/$_bluezcommit/debian/firmware/broadcom/BCM4345C5.hcd"
|
|
|
|
"BCM4343A2.hcd::https://raw.githubusercontent.com/RPi-Distro/bluez-firmware/$_bluezcommit/debian/firmware/broadcom/BCM4343A2.hcd"
|
2021-02-18 11:27:36 +00:00
|
|
|
# bluetooth for RPi3+
|
2024-09-01 11:04:26 +00:00
|
|
|
"BCM43430A1.hcd::https://raw.githubusercontent.com/RPi-Distro/bluez-firmware/$_bluezcommit/debian/firmware/broadcom/BCM43430A1.hcd"
|
|
|
|
"BCM4345C0.hcd::https://raw.githubusercontent.com/RPi-Distro/bluez-firmware/$_bluezcommit/debian/firmware/broadcom/BCM4345C0.hcd"
|
2021-11-17 11:28:54 +00:00
|
|
|
# bluetooth for Zero 2 W
|
2024-09-01 11:04:26 +00:00
|
|
|
"BCM43430B0.hcd::https://raw.githubusercontent.com/RPi-Distro/bluez-firmware/$_bluezcommit/debian/firmware/broadcom/BCM43430B0.hcd"
|
|
|
|
# license
|
|
|
|
"LICENSE.cypress::https://raw.githubusercontent.com/RPi-Distro/bluez-firmware/$_bluezcommit/debian/firmware/broadcom/LICENSE.cypress"
|
2019-03-21 23:32:31 +00:00
|
|
|
'RPi-WM8804.conf')
|
2020-12-25 21:35:13 +00:00
|
|
|
|
2024-08-31 12:00:56 +00:00
|
|
|
sha256sums=('247bdaa9d3596fabb84f050b5e14cd990e224e9151f77528caec23fab7bcdaaa'
|
2023-01-05 14:20:34 +00:00
|
|
|
'fb9f4ec2df5301bd35f416384e103c012c5983024c49aa72fbbaf90177512caa'
|
2024-09-01 11:04:26 +00:00
|
|
|
'5f7fb0a863f9ee8874e4ad37ccc69abbc751fdc0257cb3fdd0ba0e89378ff76a'
|
2022-03-28 13:06:47 +00:00
|
|
|
'c096ad4a5c3f06ed7d69eba246bf89ada9acba64a5b6f51b1e9c12f99bb1e1a7'
|
2023-01-05 14:20:34 +00:00
|
|
|
'51c45e77ddad91a19e96dc8fb75295b2087c279940df2634b23baf71b6dea42c'
|
2021-11-17 11:28:54 +00:00
|
|
|
'338c2c6631131f516bfc7e64ef0872bd0402e1f98ef9d0c900eef0c814d90a25'
|
2024-09-01 11:04:26 +00:00
|
|
|
'a92f031f19089fa63bd24ac4c5298ca1356670321b39c67024a961ee3285fff7'
|
2019-03-21 23:32:31 +00:00
|
|
|
'f978fbc40db75ba3213a4472023496d0716706eb1a6f078f207ac027c5753f43')
|
2017-09-10 16:06:48 +00:00
|
|
|
|
|
|
|
package() {
|
2022-06-26 19:02:54 +00:00
|
|
|
_FWPATH=firmware-nonfree/debian/config/brcm80211
|
|
|
|
|
2022-06-14 09:52:53 +00:00
|
|
|
# https://github.com/RPi-Distro/firmware-nonfree/issues/26
|
2022-06-26 19:02:54 +00:00
|
|
|
unlink "$srcdir/$_FWPATH/brcm/brcmfmac43455-sdio.bin"
|
2022-06-14 09:52:53 +00:00
|
|
|
|
2024-09-01 11:04:26 +00:00
|
|
|
mkdir -p "$pkgdir/usr/share/licenses/broadcom/cypress"
|
|
|
|
install -m 0644 LICENSE.cypress "$pkgdir/usr/share/licenses/broadcom/cypress/LICENSE"
|
|
|
|
|
2022-10-27 15:23:17 +00:00
|
|
|
# install cypress dir and symlink cyfmac43455-sdio-standard.bin which debian
|
|
|
|
# packaging does, see README.txt in /cypress and comments in this commit:
|
|
|
|
# https://github.com/RPi-Distro/firmware-nonfree/commit/3b108c864428dda9f9833cf3346f438552d08cea
|
|
|
|
install -d "$srcdir/$_FWPATH/cypress" "$pkgdir"/usr/lib/firmware/updates/cypress/
|
|
|
|
install -m 0644 "$srcdir/$_FWPATH/cypress/"* "$pkgdir"/usr/lib/firmware/updates/cypress
|
|
|
|
cd "$pkgdir"/usr/lib/firmware/updates/cypress
|
|
|
|
|
|
|
|
# we can use either the -standard or -minimal files so use standard by default
|
|
|
|
ln -s cyfmac43455-sdio-standard.bin cyfmac43455-sdio.bin
|
|
|
|
|
|
|
|
cd "$srcdir"
|
2022-03-28 13:06:47 +00:00
|
|
|
install -d "$pkgdir"/usr/lib/firmware/updates/brcm "$pkgdir"/usr/share/alsa/cards/
|
|
|
|
install -m 0644 *.hcd "$pkgdir"/usr/lib/firmware/updates/brcm
|
|
|
|
install -m 0644 RPi-WM8804.conf "$pkgdir"/usr/share/alsa/cards/
|
2022-10-27 15:23:17 +00:00
|
|
|
cp -r "$srcdir/$_FWPATH/brcm/"* "$pkgdir"/usr/lib/firmware/updates/brcm
|
2023-10-06 19:19:34 +00:00
|
|
|
|
2021-11-17 11:28:54 +00:00
|
|
|
# make some symbolic links
|
2022-03-28 13:06:47 +00:00
|
|
|
cd "$pkgdir"/usr/lib/firmware/updates/brcm
|
2022-05-15 09:47:40 +00:00
|
|
|
ln -s brcmfmac43456-sdio.txt brcmfmac43456-sdio.pine64-pinephone-pro.txt
|
|
|
|
ln -s BCM43430B0.hcd BCM.hcd
|
2017-09-10 16:06:48 +00:00
|
|
|
}
|