void-packages/srcpkgs/rpi-base/template
Juan RP 21fdf73989 srcpkgs: replace all refs from voidlinux.eu to voidlinux.org.
Revbumped affected packages.

Signed-off-by: Juan RP <xtraeme@gmail.com>

[ci skip]
2019-06-06 18:42:35 +02:00

29 lines
964 B
Bash

# Template file for 'rpi-base'
pkgname=rpi-base
version=2.5
revision=4
homepage="http://www.voidlinux.org"
short_desc="Void Linux RaspberryPi base files"
maintainer="Juan RP <xtraeme@voidlinux.org>"
license="Public Domain"
archs="armv6l* armv7l* aarch64*"
depends="virtual?ntp-daemon rpi-firmware rpi-kernel"
do_install() {
case "$XBPS_TARGET_MACHINE" in
armv6l*)
# Load the audio module by default on RPi.
vmkdir usr/lib/modules-load.d
echo snd-bcm2835 > ${DESTDIR}/usr/lib/modules-load.d/snd_bcm2835.conf
;;
esac
# Fix permissions for the vchiq, vcio, vcsm devices.
vmkdir usr/lib/udev/rules.d
echo 'SUBSYSTEM=="vchiq", GROUP="video", MODE="0660"' > \
${DESTDIR}/usr/lib/udev/rules.d/71-raspberrypi.rules
echo 'SUBSYSTEM=="bcm2708_vcio", GROUP="video", MODE="0660"' >> \
${DESTDIR}/usr/lib/udev/rules.d/71-raspberrypi.rules
echo 'SUBSYSTEM=="vc-sm", GROUP="video", MODE="0660"' >> \
${DESTDIR}/usr/lib/udev/rules.d/71-raspberrypi.rules
}