PKGBUILDs/alarm/raspberrypi-firmware/PKGBUILD
graysky 05a24781c3 alarm/raspberrypi-firmware to 20201210-1
Switch to Oleg's PKGBUILD that pulls from upstream userland
and that covers armv6h, armv7h, and aarch64
2020-12-10 12:38:54 -05:00

63 lines
2 KiB
Bash

# Maintainer: Oleg Rakhmanov <oleg [at] archlinuxarm [dot] org>
# Maintainer: Kevin Mihelich <kevin@archlinuxarm.org>
# Maintainer: graysky <graysky@archlinux.us>
buildarch=28
pkgname=raspberrypi-firmware
pkgver=20201210
pkgrel=1
# userland commit for all
_commit=093b30bbc2fd083d68cc3ee07e6e555c6e592d11
# firmware commit for cherrypick bins
_cherrypick=919aee0ed75f7db48a38b8b96c13228a7584cfd7
pkgdesc="Firmware tools, libraries, and headers for Raspberry Pi"
arch=('armv6h' 'armv7h' 'aarch64')
url="https://github.com/raspberrypi/userland"
license=('custom')
makedepends=('cmake')
replaces=('raspberrypi-firmware-tools')
provides=('raspberrypi-firmware-tools')
options=(!strip)
source=("https://github.com/raspberrypi/userland/archive/$_commit.tar.gz"
"https://raw.githubusercontent.com/raspberrypi/firmware/master/opt/vc/LICENCE"
'00-raspberrypi-firmware.conf'
# for armv6h and armv7h only
"https://github.com/raspberrypi/firmware/raw/$_cherrypick/opt/vc/bin/edidparser"
"https://github.com/raspberrypi/firmware/raw/$_cherrypick/opt/vc/bin/vcdbg")
md5sums=('b4b3ef6a5c9ecbf11a517e29db97fd1b'
'86e53f5f5909ee66900418028de11780'
'72e0d5818fc513ece1b964f25f7e7882'
'e13306773ae7d2cc835072c51a83c56d'
'6941e32c25e5534b2a84045004743f4c')
build() {
cd ${srcdir}/userland-${_commit}
if [[ "${CARCH}" = 'aarch64' ]]; then
cmake -DCMAKE_BUILD_TYPE=Release -DARM64=ON
else
cmake -DCMAKE_BUILD_TYPE=Release
fi
make
}
package() {
mkdir -p "${pkgdir}"/opt/vc
cd ${srcdir}/userland-${_commit}
make install DESTDIR="${pkgdir}"
install -m644 ../LICENCE "${pkgdir}"/opt/vc/LICENCE
rm -rf "${pkgdir}"/opt/vc/src
# Create lib links
mkdir -p "${pkgdir}"/etc/ld.so.conf.d/
install -m644 ../00-raspberrypi-firmware.conf "${pkgdir}"/etc/ld.so.conf.d/00-raspberrypi-firmware.conf
if [[ "${CARCH}" != 'aarch64' ]]; then
install -m755 "${srcdir}"/edidparser "${pkgdir}"/opt/vc/bin/edidparser
install -m755 "${srcdir}"/vcdbg "${pkgdir}"/opt/vc/bin/vcdbg
fi
}