PKGBUILDs/alarm/raspberrypi-firmware/PKGBUILD
2019-03-09 00:14:59 +00:00

29 lines
914 B
Bash

# Maintainer: Kevin Mihelich <kevin@archlinuxarm.org>
buildarch=20
pkgname=raspberrypi-firmware
pkgver=20190308
pkgrel=1
_commit=fd15e0700e45d9b7db83e30696aba299b9f2f31d
pkgdesc="Firmware tools, libraries, and headers for Raspberry Pi"
arch=('armv6h' 'armv7h')
url="https://github.com/raspberrypi/firmware"
license=('custom')
replaces=('raspberrypi-firmware-tools')
provides=('raspberrypi-firmware-tools')
options=(!strip)
source=("https://github.com/raspberrypi/firmware/archive/${_commit}.tar.gz"
'00-raspberrypi-firmware.conf')
md5sums=('4989bb114dda86db1ca3f91c17e0e4a5'
'72e0d5818fc513ece1b964f25f7e7882')
package() {
mkdir -p "${pkgdir}"/opt/vc
cp -R "${srcdir}"/firmware-${_commit}/hardfp/opt/vc/{bin,include,lib,LICENCE} "${pkgdir}"/opt/vc
# Create lib links
mkdir -p "${pkgdir}"/etc/ld.so.conf.d/
cp "${srcdir}/00-raspberrypi-firmware.conf" "${pkgdir}"/etc/ld.so.conf.d/
}