PKGBUILDs/alarm/raspberrypi-bootloader/PKGBUILD

36 lines
1.1 KiB
Bash
Raw Normal View History

2016-12-11 21:20:56 +00:00
# Maintainer: Kevin Mihelich <kevin@archlinuxarm.org>
# Maintainer: graysky <graysky@archlinux.us>
2016-12-11 21:20:56 +00:00
buildarch=28
pkgbase=raspberrypi-bootloader
pkgname=('raspberrypi-bootloader'
'raspberrypi-bootloader-x')
pkgver=20210914
pkgrel=2
_commit=1e8ea79095e4186d09b65135c2a0db3df8ffc48a
2016-12-11 21:20:56 +00:00
arch=('any')
url="https://github.com/raspberrypi/firmware"
license=('custom')
options=(!strip)
source=("https://github.com/raspberrypi/firmware/archive/${_commit}.tar.gz")
md5sums=('2aa8d604c10a28c5e6d421e35b5c3d25')
2016-12-11 21:20:56 +00:00
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}
2016-12-11 21:20:56 +00:00
}
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
2016-12-11 21:20:56 +00:00
}