void-packages/srcpkgs/rpi-eeprom/template

30 lines
1.0 KiB
Bash

# Template file for 'rpi-eeprom'
pkgname=rpi-eeprom
version=2023.09.29
revision=1
_githash="4f2d676b4e2a9c2d9ee1ab42015ce711fde97afa"
archs="armv7* aarch64*"
conf_files="/etc/default/rpi-eeprom-update"
depends="binutils pciutils python3 rpi-firmware rpi-userland"
short_desc="Bootloader and VL805 USB controller EEPROM update tool for RPi4"
maintainer="Leah Neukirchen <leah@vuxu.org>"
license="BSD-3-Clause, custom:Proprietary"
homepage="https://github.com/raspberrypi/rpi-eeprom/"
distfiles="https://github.com/raspberrypi/rpi-eeprom/archive/${_githash}.tar.gz"
checksum="189c5d37f3102247cec72619e3cb357d027ec526fa3c7373d3107bd6c9e30e29"
python_version=3
repository=nonfree
do_install() {
vbin rpi-eeprom-config
vbin rpi-eeprom-update
vbin rpi-eeprom-digest
vinstall rpi-eeprom-update-default 644 etc/default rpi-eeprom-update
vmkdir usr/lib/firmware/raspberrypi/bootloader
# need to figure out how to package both pi4 (2711) and pi5 (2712) fw
vcopy firmware-2711/* usr/lib/firmware/raspberrypi/bootloader/
vlicense LICENSE
}