template 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. # Template file for 'dkms'
  2. pkgname=dkms
  3. version=3.0.13
  4. revision=10
  5. conf_files="/etc/dkms/framework.conf"
  6. depends="bash kmod gcc clang llvm lld make coreutils xbps-triggers>=0.123_1"
  7. short_desc="Dynamic Kernel Module Support"
  8. maintainer="MarcoAPC <marcoaureliopc@gmail.com>"
  9. license="GPL-2.0-or-later"
  10. homepage="https://github.com/dell/dkms"
  11. distfiles="${homepage}/archive/v${version}.tar.gz"
  12. checksum=ceb5bbb89ece7310ee96952a56c926faa51c4486f7e5e43c8589585056e45bb5
  13. patch_args="-Np0"
  14. # dkms does not create this directory, but needs it
  15. # https://github.com/void-linux/void-packages/issues/39066
  16. make_dirs="/var/lib/dkms 0755 root root"
  17. case "$XBPS_TARGET_MACHINE" in
  18. # Too many competing kernels for arm* to depend on linux-headers
  19. arm*) ;;
  20. *) depends+=" linux-headers" ;;
  21. esac
  22. if [ "$CROSS_BUILD" ]; then
  23. depends+=" openssl-devel gmp-devel libada-devel libmpc-devel flex"
  24. fi
  25. do_build() {
  26. make dkms dkms.8
  27. }
  28. do_install() {
  29. # We are only interested in the bare minimum.
  30. vbin dkms
  31. vman dkms.8
  32. vcompletion dkms.bash-completion.in bash dkms
  33. vinstall dkms_framework.conf.in 644 etc/dkms framework.conf
  34. # Kernel hooks.
  35. vinstall ${FILESDIR}/kernel.d/dkms.postinst 754 etc/kernel.d/post-install 10-dkms
  36. vinstall ${FILESDIR}/kernel.d/dkms.prerm 754 etc/kernel.d/pre-remove 10-dkms
  37. }