void-packages/srcpkgs/rpi-firmware/template
2015-11-14 08:24:47 +01:00

34 lines
975 B
Bash

# Template file for 'rpi-firmware'
_githash="fa627390f76d7d3c38e80fc88ad1cc6697c04334"
_gitshort="${_githash:0:7}"
pkgname=rpi-firmware
version=20151114
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=981abe4ff1e47c594f0b24dec2a373584c6fc2c103b7240e99ab1b5c757904ee
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
}