void-packages/srcpkgs/rpi-base-files/template

26 lines
825 B
Text

# Template file for 'rpi-base-files'
pkgname=rpi-base-files
version=0.1
revision=1
short_desc="Void Linux base system files for the Raspberry Pi"
maintainer="Juan RP <xtraeme@gmail.com>"
homepage="http://www.voidlinux.eu"
license="Public domain"
# XXX only for rpi
only_for_archs="armv6l"
makedepends="ntp?ntp-daemon dhcpcd openssh-server"
depends="${makedepends}"
# enable dhcpcd and sshd by default.
systemd_services="dhcpcd.service on sshd.service on"
replaces="base-system<0.77"
do_install() {
# Load the audio module by default.
vmkdir usr/lib/modules-load.d
echo snd-bcm2835 > ${DESTDIR}/usr/lib/modules-load.d/snd_bcm2835.conf
# Fix permissions for the vchiq device.
vmkdir usr/lib/udev/rules.d
echo 'SUBSYSTEM=="vchiq", GROUP="video", MODE="0660"' > \
${DESTDIR}/usr/lib/udev/rules.d/71-raspberrypi.rules
}