mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-28 22:57:37 +00:00
alarm/raspberrypi-firmware to 20201215-2
Ship udev rule to provision video group which is required for non-root users to call /opt/vc/bin/vcgencmd and get output. Note user also needs to be in the video group but that is easily discovered via a web search.
This commit is contained in:
parent
b5c0b4b29e
commit
e5db83743f
2 changed files with 9 additions and 3 deletions
1
alarm/raspberrypi-firmware/10-raspberrypi-firmware.rules
Normal file
1
alarm/raspberrypi-firmware/10-raspberrypi-firmware.rules
Normal file
|
@ -0,0 +1 @@
|
||||||
|
SUBSYSTEM=="vchiq",GROUP="video",MODE="0660"
|
|
@ -6,7 +6,7 @@ buildarch=28
|
||||||
|
|
||||||
pkgname=raspberrypi-firmware
|
pkgname=raspberrypi-firmware
|
||||||
pkgver=20201215
|
pkgver=20201215
|
||||||
pkgrel=1
|
pkgrel=2
|
||||||
_commitfirmware=8a5549c137dbce0e082ecf21607dc5e3feac1160
|
_commitfirmware=8a5549c137dbce0e082ecf21607dc5e3feac1160
|
||||||
_commituserland=093b30bbc2fd083d68cc3ee07e6e555c6e592d11
|
_commituserland=093b30bbc2fd083d68cc3ee07e6e555c6e592d11
|
||||||
pkgdesc="Firmware tools, libraries, and headers for Raspberry Pi"
|
pkgdesc="Firmware tools, libraries, and headers for Raspberry Pi"
|
||||||
|
@ -17,12 +17,14 @@ makedepends_aarch64=('cmake')
|
||||||
replaces=('raspberrypi-firmware-tools')
|
replaces=('raspberrypi-firmware-tools')
|
||||||
provides=('raspberrypi-firmware-tools')
|
provides=('raspberrypi-firmware-tools')
|
||||||
options=(!strip)
|
options=(!strip)
|
||||||
source=('00-raspberrypi-firmware.conf')
|
source=('00-raspberrypi-firmware.conf'
|
||||||
|
'10-raspberrypi-firmware.rules')
|
||||||
source_armv6h=("https://github.com/raspberrypi/firmware/archive/$_commitfirmware.tar.gz")
|
source_armv6h=("https://github.com/raspberrypi/firmware/archive/$_commitfirmware.tar.gz")
|
||||||
source_armv7h=("https://github.com/raspberrypi/userland/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"
|
source_aarch64=("https://github.com/raspberrypi/userland/archive/$_commituserland.tar.gz"
|
||||||
"https://raw.githubusercontent.com/raspberrypi/firmware/master/opt/vc/LICENCE")
|
"https://raw.githubusercontent.com/raspberrypi/firmware/master/opt/vc/LICENCE")
|
||||||
md5sums=('72e0d5818fc513ece1b964f25f7e7882')
|
md5sums=('72e0d5818fc513ece1b964f25f7e7882'
|
||||||
|
'2ad54baf398afe59ff5a70eb655f1b96')
|
||||||
md5sums_armv6h=('8387de1c197424ea62e4052604df1e52')
|
md5sums_armv6h=('8387de1c197424ea62e4052604df1e52')
|
||||||
md5sums_armv7h=('8387de1c197424ea62e4052604df1e52')
|
md5sums_armv7h=('8387de1c197424ea62e4052604df1e52')
|
||||||
md5sums_aarch64=('b4b3ef6a5c9ecbf11a517e29db97fd1b'
|
md5sums_aarch64=('b4b3ef6a5c9ecbf11a517e29db97fd1b'
|
||||||
|
@ -37,6 +39,9 @@ build() {
|
||||||
}
|
}
|
||||||
|
|
||||||
package() {
|
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"
|
||||||
|
|
||||||
if [[ "${CARCH}" = 'aarch64' ]]; then
|
if [[ "${CARCH}" = 'aarch64' ]]; then
|
||||||
mkdir -p "${pkgdir}"/opt/vc
|
mkdir -p "${pkgdir}"/opt/vc
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue