void-packages/srcpkgs/rpi-firmware/template
Juan RP 0d85b53dd0 Refact Raspberry Pi firmware and userland packages.
- Packaged rpi-userland which now contains the userland GPU libs
and utilities, and builds on musl.
- rpi-firmware now just contains the boot files, nothing else.
- rpi-firmware-pcfiles has been merged into rpi-userland-devel and
has been removed.
2015-09-07 18:49:26 +02:00

34 lines
975 B
Bash

# Template file for 'rpi-firmware'
_githash="fc952516e1d73d54141861a64ac5d4be17e7a159"
_gitshort="${_githash:0:7}"
pkgname=rpi-firmware
version=20150904
revision=2
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=5400f1a019d85883bf6e00e4c1a4433974e3edd3b92a1c4b31a18ce474c0bd7c
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
}