# Maintainer: Kevin Mihelich # Maintainer: graysky buildarch=28 pkgbase=raspberrypi-bootloader pkgname=('raspberrypi-bootloader' 'raspberrypi-bootloader-x') pkgver=20220127 pkgrel=1 _commit=e5013c9d596e1a392e5193bc8cb822966b9c7d7c arch=('any') url="https://github.com/raspberrypi/firmware" license=('custom') options=(!strip) source=("bootloader-${_commit:0:10}.tar.gz::https://github.com/raspberrypi/firmware/archive/${_commit}.tar.gz") md5sums=('e6ae46df2f5ac1f290ac6d45b6a5d21a') package_raspberrypi-bootloader() { pkgdesc="Bootloader files for Raspberry Pi" replaces=('raspberrypi-firmware-bootloader') mkdir -p "${pkgdir}"/boot cp "${srcdir}"/firmware-${_commit}/boot/{*.dat,*.bin,*.elf} "${pkgdir}"/boot rm "${pkgdir}"/boot/{start{_,4}x.elf,fixup{_,4}x.dat} } package_raspberrypi-bootloader-x() { pkgdesc="Bootloader with extra codecs for Raspberry Pi" depends=('raspberrypi-bootloader') replaces=('raspberrypi-firmware-bootloader-x') mkdir -p "${pkgdir}"/boot cp "${srcdir}"/firmware-${_commit}/boot/{start{_,4}x.elf,fixup{_,4}x.dat} "${pkgdir}"/boot }