[arch-commits] Commit in acpi_call/repos (staging-x86_64 staging-x86_64/PKGBUILD)

Christian Hesse eworm at archlinux.org
Wed Apr 1 10:57:39 UTC 2020


    Date: Wednesday, April 1, 2020 @ 10:57:39
  Author: eworm
Revision: 608741

archrelease: copy trunk to staging-x86_64

Added:
  acpi_call/repos/staging-x86_64/
  acpi_call/repos/staging-x86_64/PKGBUILD
    (from rev 608740, acpi_call/trunk/PKGBUILD)

----------+
 PKGBUILD |   33 +++++++++++++++++++++++++++++++++
 1 file changed, 33 insertions(+)

Copied: acpi_call/repos/staging-x86_64/PKGBUILD (from rev 608740, acpi_call/trunk/PKGBUILD)
===================================================================
--- staging-x86_64/PKGBUILD	                        (rev 0)
+++ staging-x86_64/PKGBUILD	2020-04-01 10:57:39 UTC (rev 608741)
@@ -0,0 +1,33 @@
+# Maintainer: Maxime Gauduin <alucryd at archlinux.org>
+# Contributor: mortzu <me at mortzu.de>
+# Contributor: fnord0 <fnord0 at riseup.net>
+
+pkgname=acpi_call
+pkgver=1.1.0
+pkgrel=302
+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:



More information about the arch-commits mailing list