mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-08 22:45:43 +00:00
35 lines
1.1 KiB
Bash
35 lines
1.1 KiB
Bash
# Maintainer: Kevin Mihelich <kevin@archlinuxarm.org>
|
|
# Maintainer: graysky <graysky@archlinux.us>
|
|
|
|
buildarch=28
|
|
|
|
pkgbase=raspberrypi-bootloader
|
|
pkgname=('raspberrypi-bootloader'
|
|
'raspberrypi-bootloader-x')
|
|
pkgver=20210323
|
|
pkgrel=3
|
|
_commit=f9d853415a9ade3458d55f9153d88317dbad4d9b
|
|
arch=('any')
|
|
url="https://github.com/raspberrypi/firmware"
|
|
license=('custom')
|
|
options=(!strip)
|
|
source=("https://github.com/raspberrypi/firmware/archive/${_commit}.tar.gz")
|
|
md5sums=('3525898fb64da4b44f3ee36c3936d1fd')
|
|
|
|
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
|
|
}
|