void-packages/srcpkgs/acpi_call-dkms/template

34 lines
969 B
Bash

# Template file for 'acpi_call-dkms'
pkgname=acpi_call-dkms
version=1.2.2
revision=1
archs="i686 x86_64*"
wrksrc=acpi_call-${version}
short_desc="Kernel module allowing calls to ACPI methods through /proc/acpi/call"
maintainer="Daniel A. Maierhofer <git@damadmai.at>"
license="GPL-3.0-or-later"
homepage="https://github.com/nix-community/acpi_call"
distfiles="https://github.com/nix-community/acpi_call/archive/refs/tags/v${version}.tar.gz"
checksum=8b1902a94395c2fa5a97f81c94868a9cbc46a48e12309ad01626439bde96f1d9
dkms_modules="acpi_call ${version}"
depends="dkms"
do_build() {
make dkms.conf
}
do_install() {
vmkdir usr/src/acpi_call-${version}
vcopy Makefile usr/src/acpi_call-${version}
vcopy dkms.conf usr/src/acpi_call-${version}
vcopy "*.c" usr/src/acpi_call-${version}
vmkdir usr/share/acpi_call
vcopy "examples/*.sh" usr/share/acpi_call
vcopy "support/*" usr/share/acpi_call
vcopy "support/windump_hack/*" usr/share/acpi_call
vdoc "README.md"
}