PKGBUILDs/alarm/raspberrypi-bootloader/PKGBUILD
graysky e6d609affa alarm/raspberrypi-bootloader to 20220206-1
Update and change bitmask to 12
2022-02-06 07:14:00 -05:00

35 lines
1.1 KiB
Bash

# Maintainer: Kevin Mihelich <kevin@archlinuxarm.org>
# Maintainer: graysky <graysky@archlinux.us>
buildarch=12
pkgbase=raspberrypi-bootloader
pkgname=('raspberrypi-bootloader'
'raspberrypi-bootloader-x')
pkgver=20220206
pkgrel=1
_commit=48606ad5e152227db4a26459fc2ba7944b6597a3
arch=('any')
url="https://github.com/raspberrypi/firmware"
license=('custom')
options=(!strip)
source=("bootloader-$pkgver-${_commit:0:10}.tar.gz::https://github.com/raspberrypi/firmware/archive/${_commit}.tar.gz")
md5sums=('0b9d0ab3afbcfd9641389fd5dff28654')
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
}