2014-01-23 12:06:47 +00:00
|
|
|
# Template file for 'rpi-base'
|
|
|
|
pkgname=rpi-base
|
2014-01-27 16:13:41 +00:00
|
|
|
version=1.4
|
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
|
|
|
|
|
|
|
only_for_archs="armv6l"
|
2014-01-23 12:22:33 +00:00
|
|
|
makedepends="ntp?ntp-daemon dhcpcd openssh-server rpi-firmware rpi-kernel"
|
2014-01-01 15:10:11 +00:00
|
|
|
depends="${makedepends}"
|
2014-01-23 12:06:47 +00:00
|
|
|
|
|
|
|
# Allow upgrades for compatibility.
|
|
|
|
provides="rpi-base-files-${version}_${revision}"
|
|
|
|
replaces="rpi-base-files>=0"
|
|
|
|
|
2013-11-11 11:53:27 +00:00
|
|
|
do_install() {
|
|
|
|
# Load the audio module by default.
|
|
|
|
vmkdir usr/lib/modules-load.d
|
|
|
|
echo snd-bcm2835 > ${DESTDIR}/usr/lib/modules-load.d/snd_bcm2835.conf
|
|
|
|
# Fix permissions for the vchiq device.
|
|
|
|
vmkdir usr/lib/udev/rules.d
|
2014-01-24 10:32:53 +00:00
|
|
|
echo 'SUBSYSTEM=="vchiq|input", GROUP="video", MODE="0660"' > \
|
|
|
|
${DESTDIR}/usr/lib/udev/rules.d/71-raspberrypi.rules
|
|
|
|
echo 'KERNEL=="mouse*|mice|event*", GROUP="video", MODE="0770"' >> \
|
2013-11-11 11:53:27 +00:00
|
|
|
${DESTDIR}/usr/lib/udev/rules.d/71-raspberrypi.rules
|
|
|
|
}
|