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

56 lines
1.5 KiB
Plaintext
Raw Normal View History

# Template file for 'odroid-u2-base'
pkgname=odroid-u2-base
version=1.4
revision=4
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"
makedepends="ntp?ntp-daemon dhcpcd openssh-server odroid-u2-kernel"
depends="${makedepends}"
hostmakedepends="uboot-mkimage"
conf_files=/etc/default/odroid-led
# enable odroid-led, ntpd, dhcpcd and sshd by default (but don't restart services).
systemd_services="
odroid-led.service off
ntpdate.service off
ntpd.service off
dhcpcd.service off
sshd.service off"
# Allow upgrades for compatibility.
2014-01-23 09:32:32 +01:00
provides="odroid-u2-ubootcfg-${version}_${revision}"
replaces="odroid-u2-ubootcfg>=0"
2014-01-22 00:23:49 +01:00
_default_scr="boot-auto_edid.scr"
do_build() {
# Building uboot scr's
for source in ${FILESDIR}/*.ini; do
name=$(basename ${source%.ini})
mkimage -A arm -T script -C none -n "${name}" -d $source ${name}.scr
2014-01-22 00:23:49 +01:00
done
cp ${_default_scr} boot.scr
}
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 uboot scr's
2014-01-22 00:23:49 +01:00
for scr in *.scr; do
echo $scr
vinstall $scr 600 boot
done
# Install LED utilities
vinstall ${FILESDIR}/odroid-led 744 /usr/sbin
vinstall ${FILESDIR}/odroid-led.default 744 /etc/default odroid-led
vinstall ${FILESDIR}/odroid-led.service 644 /usr/lib/systemd/system
2014-01-22 00:23:49 +01:00
}