PKGBUILDs/alarm/raspberrypi-bootloader/PKGBUILD
2019-11-03 15:59:37 +00:00

34 lines
1 KiB
Bash

# Maintainer: Kevin Mihelich <kevin@archlinuxarm.org>
buildarch=28
pkgbase=raspberrypi-bootloader
pkgname=('raspberrypi-bootloader'
'raspberrypi-bootloader-x')
pkgver=20191103
pkgrel=1
_commit=b79618b5db4e4e7c02f9ad9d3ada51713825313e
arch=('any')
url="https://github.com/raspberrypi/firmware"
license=('custom')
options=(!strip)
source=("https://github.com/raspberrypi/firmware/archive/${_commit}.tar.gz")
md5sums=('d642832ee96f82ec543c9b6f200b453c')
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
}