void-packages/srcpkgs/odroid-u2-base/template

30 lines
903 B
Bash
Raw Normal View History

# Template file for 'odroid-u2-base'
pkgname=odroid-u2-base
version=2.1
revision=1
build_style=meta
homepage="http://www.voidlinux.eu"
short_desc="Void Linux Odroid U2 platform package"
2014-01-22 00:23:49 +01:00
maintainer="Enno Boland <eb@s01.de>"
license="Public Domain"
only_for_archs="armv7l"
depends="virtual?ntp-daemon odroid-u2-kernel odroid-u2-uboot odroid-u2-boot-fw"
conf_files=/etc/default/odroid-led
2015-01-09 10:17:14 +01:00
build_options="systemd"
2014-01-22 00:23:49 +01:00
do_install() {
# Set proper perms to some devices.
vmkdir usr/lib/udev/rules.d
echo 'KERNEL=="disp|cedar_dev|mali|ump", MODE="0660", GROUP="video"' > ${DESTDIR}/usr/lib/udev/rules.d/50-odroid-u2.rules
# Install LED utilities
2015-01-09 10:17:14 +01:00
vinstall ${FILESDIR}/odroid-led.sh 744 /usr/sbin odroid-led
vinstall ${FILESDIR}/odroid-led.default 744 /etc/default odroid-led
2015-01-09 10:17:14 +01:00
if [ "$build_option_systemd" ]; then
vinstall ${FILESDIR}/odroid-led.service 644 /usr/lib/systemd/system
fi
vsv odroid-led
2014-01-22 00:23:49 +01:00
}