void-packages/srcpkgs/dkms/template
David Flatz 08c803d443 dkms: give user some feedback when build failed
Closes: #6954 [via git-merge-pr]
2017-07-04 18:22:03 -07:00

29 lines
970 B
Bash

# Template file for 'dkms'
pkgname=dkms
version=2.4.0
revision=2
conf_files="/etc/dkms/framework.conf"
depends="bash kmod gcc make coreutils linux-headers"
homepage="https://github.com/dell/dkms"
distfiles="${homepage}/archive/v${version}.tar.gz"
short_desc="Dynamic Kernel Modules System"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
license="GPL-2"
checksum=53f09dbd5db8c12eca2c80c959793389e14355dfed1363133a0e08e751bb9053
case "$XBPS_TARGET_MACHINE" in
*-musl) depends+=" musl-devel";;
*) depends+=" glibc-devel";;
esac
do_install() {
# We are only interested in the bare minimum.
vbin dkms
vman dkms.8
vinstall dkms_dbversion 644 var/lib/dkms
vinstall dkms.bash-completion 644 usr/share/bash-completion/completions dkms
vinstall dkms_framework.conf 644 etc/dkms framework.conf
# Kernel hooks.
vinstall ${FILESDIR}/kernel.d/dkms.postinst 750 etc/kernel.d/post-install 10-dkms
vinstall ${FILESDIR}/kernel.d/dkms.prerm 750 etc/kernel.d/pre-remove 10-dkms
}