123456789101112131415161718192021222324252627282930313233343536373839404142 |
- # Template file for 'dkms'
- pkgname=dkms
- version=3.0.13
- revision=10
- conf_files="/etc/dkms/framework.conf"
- depends="bash kmod gcc clang llvm lld make coreutils xbps-triggers>=0.123_1"
- short_desc="Dynamic Kernel Module Support"
- maintainer="MarcoAPC <marcoaureliopc@gmail.com>"
- license="GPL-2.0-or-later"
- homepage="https://github.com/dell/dkms"
- distfiles="${homepage}/archive/v${version}.tar.gz"
- checksum=ceb5bbb89ece7310ee96952a56c926faa51c4486f7e5e43c8589585056e45bb5
- patch_args="-Np0"
- # dkms does not create this directory, but needs it
- # https://github.com/void-linux/void-packages/issues/39066
- make_dirs="/var/lib/dkms 0755 root root"
- 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+=" openssl-devel gmp-devel libada-devel libmpc-devel flex"
- fi
- do_build() {
- make dkms dkms.8
- }
- do_install() {
- # We are only interested in the bare minimum.
- vbin dkms
- vman dkms.8
- vcompletion dkms.bash-completion.in bash dkms
- vinstall dkms_framework.conf.in 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
- }
|