void-packages/srcpkgs/rpi-base/template
Juan RP 0567e5959f <platform>-base: depend on linux-firmware-network.
This makes the base platform pkg have support for all ethernet/wifi modules
available by default in its kernel.

Close #1321
2015-04-16 07:51:23 +02:00

23 lines
732 B
Bash

# Template file for 'rpi-base'
pkgname=rpi-base
version=2.3
revision=1
homepage="http://www.voidlinux.eu"
short_desc="Void Linux RaspberryPi base files"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
license="Public Domain"
only_for_archs="armv6l armv7l"
depends="virtual?ntp-daemon rpi-firmware rpi-kernel linux-firmware-network"
do_install() {
if [ "$XBPS_TARGET_MACHINE" = "armv6l" ]; then
# 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
fi
# 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
}