# Maintainer: Kevin Mihelich buildarch=28 pkgbase=raspberrypi-bootloader pkgname=('raspberrypi-bootloader' 'raspberrypi-bootloader-x') pkgver=20190807 pkgrel=1 _commit=94bae1b0a88a7fcaf171a4c91b9e1fdb03aad9ae arch=('any') url="https://github.com/raspberrypi/firmware" license=('custom') options=(!strip) source=("https://github.com/raspberrypi/firmware/archive/${_commit}.tar.gz") md5sums=('3a2c6a225b2e8c5db18a12dcca057f18') 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_x.elf,fixup_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_x.elf,fixup_x.dat} "${pkgdir}"/boot }