2014-01-23 12:06:47 +00:00
|
|
|
# Template file for 'rpi-base'
|
|
|
|
pkgname=rpi-base
|
2015-09-07 17:45:04 +00:00
|
|
|
version=2.5
|
2013-11-11 11:53:27 +00:00
|
|
|
revision=1
|
|
|
|
homepage="http://www.voidlinux.eu"
|
2014-01-23 12:06:47 +00:00
|
|
|
short_desc="Void Linux RaspberryPi base files"
|
2015-04-10 07:16:30 +00:00
|
|
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
2014-01-23 12:06:47 +00:00
|
|
|
license="Public Domain"
|
2013-11-11 11:53:27 +00:00
|
|
|
|
2015-05-25 19:23:21 +00:00
|
|
|
only_for_archs="armv6l armv6l-musl armv7l armv7l-musl"
|
2015-09-07 17:45:04 +00:00
|
|
|
depends="virtual?ntp-daemon rpi-firmware rpi-kernel"
|
2014-01-23 12:06:47 +00:00
|
|
|
|
2013-11-11 11:53:27 +00:00
|
|
|
do_install() {
|
2015-09-07 17:45:04 +00:00
|
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
|
|
armv6l*)
|
2015-02-06 10:01:56 +00:00
|
|
|
# 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
|
2015-09-07 17:45:04 +00:00
|
|
|
;;
|
|
|
|
esac
|
2013-11-11 11:53:27 +00:00
|
|
|
# Fix permissions for the vchiq device.
|
|
|
|
vmkdir usr/lib/udev/rules.d
|
2014-07-18 07:32:40 +00:00
|
|
|
echo 'SUBSYSTEM=="vchiq", GROUP="video", MODE="0660"' > \
|
2013-11-11 11:53:27 +00:00
|
|
|
${DESTDIR}/usr/lib/udev/rules.d/71-raspberrypi.rules
|
|
|
|
}
|