void-packages/srcpkgs/dkms/template
2016-01-12 10:10:42 +01:00

29 lines
1,018 B
Bash

# Template file for 'dkms'
pkgname=dkms
version=2.2.0.3
revision=11
conf_files="/etc/dkms/framework.conf"
depends="bash kmod gcc make coreutils linux-headers"
homepage="http://linux.dell.com/dkms"
distfiles="${homepage}/permalink/dkms-$version.tar.gz"
short_desc="Dynamic Kernel Modules System"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
license="GPL-2"
checksum=352a080351410e29ae8cda7a794ba1e607b87ca913d0410d56209f08875378fc
case "$XBPS_TARGET_MACHINE" in
*-musl) depends+=" musl-devel";;
*) depends+=" glibc-devel";;
esac
do_install() {
# We are only interested in the bare minimum.
vinstall dkms 755 usr/bin
vinstall dkms.8 644 usr/share/man/man8
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 20-dkms
vinstall ${FILESDIR}/kernel.d/dkms.prerm 750 etc/kernel.d/pre-remove 20-dkms
}