2014-01-23 12:06:47 +00:00
|
|
|
# Template file for 'rpi-base'
|
|
|
|
pkgname=rpi-base
|
2015-02-06 10:13:14 +00:00
|
|
|
version=2.1
|
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"
|
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
|
|
|
license="Public Domain"
|
2013-11-11 11:53:27 +00:00
|
|
|
|
2015-02-06 10:01:56 +00:00
|
|
|
only_for_archs="armv6l armv7l"
|
2014-11-04 16:03:08 +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-02-06 10:01:56 +00:00
|
|
|
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
|
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
|
|
|
|
}
|