[arch-commits] Commit in acpi_call/trunk (PKGBUILD)

Jan Steffens heftig at archlinux.org
Wed Jul 22 21:30:01 UTC 2020


    Date: Wednesday, July 22, 2020 @ 21:30:01
  Author: heftig
Revision: 664927

1.1.0-333: linux 5.7.10.arch1-1

Modified:
  acpi_call/trunk/PKGBUILD

----------+
 PKGBUILD |   11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-07-22 21:30:00 UTC (rev 664926)
+++ PKGBUILD	2020-07-22 21:30:01 UTC (rev 664927)
@@ -4,7 +4,7 @@
 
 pkgname=acpi_call
 pkgver=1.1.0
-pkgrel=332
+pkgrel=333
 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')
@@ -15,11 +15,11 @@
 build() {
   _kernver=$(</usr/src/linux/version)
 
-  dkms build --dkmstree "$srcdir" -m acpi_call/$pkgver -k $_kernver
+  fakeroot dkms build --dkmstree "$srcdir" -m acpi_call/$pkgver -k $_kernver
 }
 
 package() {
-  depends=('linux')
+  depends=(linux)
 
   _kernver=$(</usr/src/linux/version)
 
@@ -28,6 +28,11 @@
 
   # compress each module individually
   find "$pkgdir" -name '*.ko' -exec xz -T1 {} +
+
+  echo acpi_call | install -Dm644 /dev/stdin "$pkgdir/usr/lib/modules-load.d/$pkgname.conf"
+
+  mkdir -p "$pkgdir/usr/share"
+  cp -a /usr/share/acpi_call "$pkgdir/usr/share/$pkgname"
 }
 
 # vim:set ts=2 sw=2 et:



More information about the arch-commits mailing list