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

33 lines
891 B
Plaintext

# 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"
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
}
rpi-base-files_package() {
# enable dhcpcd and sshd by default.
systemd_services="dhcpcd.service on sshd.service on"
replaces="base-system<0.77"
depends="${makedepends}"
pkg_install() {
vmove all
}
}