Date: Wednesday, April 1, 2020 @ 11:05:43 Author: eworm Revision: 608767
restore [community]... Added: acpi_call/repos/community-x86_64/ acpi_call/repos/community-x86_64/PKGBUILD Deleted: acpi_call/repos/staging-x86_64/ ----------+ PKGBUILD | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) Added: community-x86_64/PKGBUILD =================================================================== --- community-x86_64/PKGBUILD (rev 0) +++ community-x86_64/PKGBUILD 2020-04-01 11:05:43 UTC (rev 608767) @@ -0,0 +1,33 @@ +# Maintainer: Maxime Gauduin <aluc...@archlinux.org> +# Contributor: mortzu <m...@mortzu.de> +# Contributor: fnord0 <fno...@riseup.net> + +pkgname=acpi_call +pkgver=1.1.0 +pkgrel=301 +pkgdesc='A linux kernel module that enables calls to ACPI methods through /proc/acpi/call' +url='https://github.com/mkottman/acpi_call' +arch=('x86_64') +license=('GPL') +makedepends=('linux-headers' "acpi_call-dkms=$pkgver") +conflicts=('acpi_call-dkms') + +build() { + _kernver=$(</usr/src/linux/version) + + dkms build --dkmstree "$srcdir" -m acpi_call/$pkgver -k $_kernver +} + +package() { + depends=('linux') + + _kernver=$(</usr/src/linux/version) + + install -Dt "$pkgdir/usr/lib/modules/$_kernver/extramodules" -m0644 \ + acpi_call/${pkgver}/$_kernver/$CARCH/module/* + + # compress each module individually + find "$pkgdir" -name '*.ko' -exec xz -T1 {} + +} + +# vim:set ts=2 sw=2 et: