void-packages/srcpkgs/bananapi-base/template

24 lines
720 B
Bash

# Template file for 'bananapi-base'
# Based on odroid-u2-base
pkgname=bananapi-base
version=2.3
revision=3
build_style=meta
short_desc="Void Linux Banana Pi platform package"
maintainer="Orphaned <orphan@voidlinux.org>"
license="Public Domain"
homepage="http://www.voidlinux.org"
archs="armv7l*"
depends="virtual?ntp-daemon sun7i-kernel bananapi-uboot linux-firmware-network"
do_install() {
# Load the sunxi-gmac module by default.
vmkdir usr/lib/modules-load.d
echo sunxi-gmac > ${DESTDIR}/usr/lib/modules-load.d/bpi.conf
# 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-bpi-video.rules
}