mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2025-01-27 23:44:04 +00:00
alarm/raspberrypi-firmware to 20210128-2
Package provides a number of binaries in /opt/vc/bin/ yet this is not searched by default and can be confusing to users. Ship a /etc/profile.d/ drop-in to modify the global PATH on login.
This commit is contained in:
parent
ed5f3539be
commit
182b5bbd1c
2 changed files with 13 additions and 3 deletions
|
@ -6,7 +6,7 @@ buildarch=28
|
|||
|
||||
pkgname=raspberrypi-firmware
|
||||
pkgver=20210128
|
||||
pkgrel=1
|
||||
pkgrel=2
|
||||
_commitfirmware=496e65477e06172ea20602e365d3790632c3cc06
|
||||
_commituserland=4a0a19b88b43e48c6b51b526b9378289fb712a4c
|
||||
pkgdesc="Firmware tools, libraries, and headers for Raspberry Pi"
|
||||
|
@ -18,13 +18,15 @@ replaces=('raspberrypi-firmware-tools')
|
|||
provides=('raspberrypi-firmware-tools')
|
||||
options=(!strip)
|
||||
source=('00-raspberrypi-firmware.conf'
|
||||
'10-raspberrypi-firmware.rules')
|
||||
'10-raspberrypi-firmware.rules'
|
||||
'raspberrypi-firmware.sh')
|
||||
source_armv6h=("https://github.com/raspberrypi/firmware/archive/$_commitfirmware.tar.gz")
|
||||
source_armv7h=("https://github.com/raspberrypi/userland/archive/$_commitfirmware.tar.gz")
|
||||
source_aarch64=("https://github.com/raspberrypi/userland/archive/$_commituserland.tar.gz"
|
||||
"https://raw.githubusercontent.com/raspberrypi/firmware/master/opt/vc/LICENCE")
|
||||
md5sums=('72e0d5818fc513ece1b964f25f7e7882'
|
||||
'2ad54baf398afe59ff5a70eb655f1b96')
|
||||
'2ad54baf398afe59ff5a70eb655f1b96'
|
||||
'15a71d74bdd8a8ae9068e38587289a38')
|
||||
md5sums_armv6h=('0aa6de64cab765e301662657b85e64c4')
|
||||
md5sums_armv7h=('0aa6de64cab765e301662657b85e64c4')
|
||||
md5sums_aarch64=('3f5e1c9d4f8295065a283676794b3f57'
|
||||
|
@ -42,6 +44,9 @@ package() {
|
|||
# setup permissions on video group for /opt/vc/bin/vcgencmd
|
||||
install -Dm0644 "$srcdir/10-raspberrypi-firmware.rules" "$pkgdir/usr/lib/udev/rules.d/10-raspberrypi-firmware.rules"
|
||||
|
||||
# setup PATH to hit /opt/vc/bin/
|
||||
install -Dt "$pkgdir/etc/profile.d" -m644 ../raspberrypi-firmware.sh
|
||||
|
||||
if [[ "${CARCH}" = 'aarch64' ]]; then
|
||||
mkdir -p "${pkgdir}"/opt/vc
|
||||
|
||||
|
|
5
alarm/raspberrypi-firmware/raspberrypi-firmware.sh
Normal file
5
alarm/raspberrypi-firmware/raspberrypi-firmware.sh
Normal file
|
@ -0,0 +1,5 @@
|
|||
# Set path to perl scriptdirs if they exist
|
||||
|
||||
[ -d /opt/vc/bin ] && append_path '/opt/vc/bin'
|
||||
|
||||
export PATH
|
Loading…
Reference in a new issue