void-packages/srcpkgs/rpi-base/template

26 lines
734 B
Bash
Raw Normal View History

# Template file for 'rpi-base'
pkgname=rpi-base
version=2.5
revision=1
homepage="http://www.voidlinux.eu"
short_desc="Void Linux RaspberryPi base files"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
license="Public Domain"
2015-05-25 19:23:21 +00:00
only_for_archs="armv6l armv6l-musl armv7l armv7l-musl"
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 device.
vmkdir usr/lib/udev/rules.d
echo 'SUBSYSTEM=="vchiq", GROUP="video", MODE="0660"' > \
${DESTDIR}/usr/lib/udev/rules.d/71-raspberrypi.rules
}