41 lines
1.1 KiB
Bash
41 lines
1.1 KiB
Bash
# Template file for 'rpi-firmware'
|
|
_githash="cc6d7bf8b4c03a2a660ff9fdf4083fc165620866"
|
|
_gitshort="${_githash:0:7}"
|
|
|
|
pkgname=rpi-firmware
|
|
version=20160507
|
|
revision=1
|
|
noarch=yes
|
|
wrksrc="firmware-${_githash}"
|
|
short_desc="Firmware files for the Raspberry Pi (git ${_gitshort})"
|
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
|
license="3-clause-BSD"
|
|
homepage="https://github.com/raspberrypi/firmware"
|
|
distfiles="https://github.com/raspberrypi/firmware/archive/${_githash}.tar.gz"
|
|
checksum=6e055f59d7cac5a84e325ffdfd4423bce08eae58f08dfd4c9fe4d79be521b11b
|
|
|
|
conf_files="/boot/cmdline.txt /boot/config.txt"
|
|
|
|
do_install() {
|
|
rm -f boot/*.img
|
|
rm -rf boot/overlays
|
|
rm -f boot/*.dtb
|
|
rm -f boot/COPYING.linux
|
|
|
|
vmkdir boot
|
|
cp -R boot/* ${DESTDIR}/boot
|
|
|
|
vmkdir usr/share/licenses/${pkgname}
|
|
mv ${DESTDIR}/boot/LICENCE.broadcom ${DESTDIR}/usr/share/licenses/${pkgname}
|
|
|
|
# Install configuration files.
|
|
vinstall ${FILESDIR}/cmdline.txt 644 boot
|
|
vinstall ${FILESDIR}/config.txt 644 boot
|
|
|
|
# Firmware for rpi3 wifi chip
|
|
for f in bin txt; do
|
|
$XBPS_FETCH_CMD https://archlinuxarm.org/builder/src/brcmfmac43430-sdio.${f}
|
|
vinstall brcmfmac43430-sdio.${f} 0644 usr/lib/firmware/brcm
|
|
done
|
|
}
|