# Template file for 'dkms' pkgname=dkms version=2.8.4 revision=1 conf_files="/etc/dkms/framework.conf" depends="bash kmod gcc make coreutils" short_desc="Dynamic Kernel Modules System" maintainer="Orphaned " license="GPL-2.0-or-later" homepage="https://github.com/dell/dkms" distfiles="${homepage}/archive/v${version}.tar.gz" checksum=540912bf0d845ac333f6971a3ccb80911c770a042af1b30ffbb9b420ac979af3 case "$XBPS_TARGET_MACHINE" in # Too many competing kernels for arm* to depend on linux-headers arm*) ;; *) depends+=" linux-headers" ;; esac if [ "$CROSS_BUILD" ]; then depends+=" libressl-devel gmp-devel libada-devel libmpc-devel flex" fi do_install() { # We are only interested in the bare minimum. vbin dkms vman dkms.8 vinstall dkms_dbversion 644 var/lib/dkms vcompletion dkms.bash-completion bash dkms vinstall dkms_framework.conf 644 etc/dkms framework.conf # Kernel hooks. vinstall ${FILESDIR}/kernel.d/dkms.postinst 754 etc/kernel.d/post-install 10-dkms vinstall ${FILESDIR}/kernel.d/dkms.prerm 754 etc/kernel.d/pre-remove 10-dkms }