# Maintainer: Kevin Mihelich # Maintainer: graysky buildarch=28 pkgbase=raspberrypi-bootloader pkgname=('raspberrypi-bootloader' 'raspberrypi-bootloader-x') pkgver=20201104 pkgrel=2 _commit=d540c62a0af9e57f244d66ac805824b74aa46908 arch=('any') url="https://github.com/raspberrypi/firmware" license=('custom') options=(!strip) source=("https://github.com/raspberrypi/firmware/archive/${_commit}.tar.gz") md5sums=('20cd616904a7272b5f22fb7a3a37268b') 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 }