summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libre/acpi_call/PKGBUILD11
1 files changed, 6 insertions, 5 deletions
diff --git a/libre/acpi_call/PKGBUILD b/libre/acpi_call/PKGBUILD
index 0674c4d98..c9c75eed5 100644
--- a/libre/acpi_call/PKGBUILD
+++ b/libre/acpi_call/PKGBUILD
@@ -5,7 +5,7 @@
# Contributor (Hyperbola): Márcio Silva <coadde@hyperbola.info>
# Maintainer: Omar Vega Ramos <ovruni@gnu.org.pe>
-_basekernel=5.2.5_gnu-1
+_basekernel=5.3.7_gnu-1
pkgbase=acpi_call
pkgname=(acpi_call acpi_call-dkms)
@@ -16,7 +16,7 @@ pkgdesc='A linux kernel module that enables calls to ACPI methods through /proc/
pkgdesc+=' (built for the linux-libre kernel package)'
url='https://github.com/mkottman/acpi_call'
arch=('x86_64')
-arch+=('i686' 'armv7h')
+arch+=('i686')
license=('GPL')
depends=(linux-libre=${_basekernel%-*})
makedepends=(linux-libre-headers=${_basekernel%-*} git libelf)
@@ -38,15 +38,16 @@ prepare() {
build() {
cd $pkgbase-$pkgver
- make KVERSION="$(cat /usr/lib/modules/$_extramodules/version)"
+ make KVERSION="$(</usr/src/linux-libre/version)"
}
package_acpi_call() {
cd $pkgbase-$pkgver
- install -Dt "$pkgdir/usr/lib/modules/$_extramodules" -m644 *.ko
+ _extradir="/usr/lib/modules/$(</usr/src/linux-libre/version)/extramodules"
+ install -Dt "$pkgdir$_extradir" -m644 *.ko
find "$pkgdir" -name '*.ko' -exec xz {} +
- echo acpi_call | install -Dm644 /dev/stdin "$pkgdir/usr/lib/modules-load.d/acpi_call.conf"
+ echo acpi_call | install -Dm644 /dev/stdin "$pkgdir/usr/lib/modules-load.d/$pkgname.conf"
mkdir -p "$pkgdir/usr/share/acpi_call"
cp -t "$pkgdir/usr/share/acpi_call" -dr --no-preserve=ownership examples support