summaryrefslogtreecommitdiff
path: root/libre/acpi_call
diff options
context:
space:
mode:
Diffstat (limited to 'libre/acpi_call')
-rw-r--r--libre/acpi_call/PKGBUILD17
1 files changed, 11 insertions, 6 deletions
diff --git a/libre/acpi_call/PKGBUILD b/libre/acpi_call/PKGBUILD
index 0625cb176..dfe92063a 100644
--- a/libre/acpi_call/PKGBUILD
+++ b/libre/acpi_call/PKGBUILD
@@ -5,14 +5,15 @@
# Contributor (Hyperbola): Márcio Silva <coadde@hyperbola.info>
# Maintainer: Omar Vega Ramos <ovruni@gnu.org.pe>
-_basekernel=5.5.13-1
+
+_basekernel=5.7.10-1
pkgname=acpi_call
pkgver=1.1.0
-pkgrel=301
+pkgrel=336
pkgrel+=.parabola1.basekernel${_basekernel%-*}
pkgdesc='A linux kernel module that enables calls to ACPI methods through /proc/acpi/call'
-pkgdesc+=' (built for the linux-libre kernel package)'
+pkgdesc+=' (for linux-libre)'
url='https://github.com/mkottman/acpi_call'
arch=('x86_64')
arch+=('i686')
@@ -21,9 +22,10 @@ makedepends=("linux-libre-headers=${_basekernel%-*}" "acpi_call-dkms=$pkgver")
conflicts=('acpi_call-dkms')
build() {
+
_kernver=$(</usr/src/linux-libre/version)
- dkms build --dkmstree "$srcdir" -m acpi_call/$pkgver -k $_kernver
+ fakeroot dkms build --dkmstree "$srcdir" -m acpi_call/$pkgver -k $_kernver
}
package() {
@@ -36,6 +38,9 @@ package() {
# compress each module individually
find "$pkgdir" -name '*.ko' -exec xz -T1 {} +
-}
-# vim:set ts=2 sw=2 et:
+ 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"
+}