summaryrefslogtreecommitdiff
path: root/libre/acpi_call
diff options
context:
space:
mode:
Diffstat (limited to 'libre/acpi_call')
-rw-r--r--libre/acpi_call/PKGBUILD11
1 files changed, 8 insertions, 3 deletions
diff --git a/libre/acpi_call/PKGBUILD b/libre/acpi_call/PKGBUILD
index 15cdcedfa..310aa7103 100644
--- a/libre/acpi_call/PKGBUILD
+++ b/libre/acpi_call/PKGBUILD
@@ -6,11 +6,11 @@
# Maintainer: Omar Vega Ramos <ovruni@gnu.org.pe>
# Contributor: Luke Shumaker <lukeshu@sbcglobal.net>
-_kernelname=-lts
+_kernelname=
if [[ ${_kernelname} == "" ]]; then
- _basekernel=4.11
- _archrel=64
+ _basekernel=4.12
+ _archrel=72
_parabolarel=1
elif [[ ${_kernelname} == -lts ]]; then
_basekernel=4.9
@@ -53,6 +53,11 @@ prepare() {
# Fix build with Linux-libre 3.17-gnu
sed -i 's|acpi/acpi.h|linux/acpi.h|' acpi_call.c
fi
+
+ if [[ ${_basekernel} > 4.11 ]]; then
+ # Fix build with Linux-libre 4.12-gnu
+ sed -i 's|asm/uaccess.h|linux/uaccess.h|' acpi_call.c
+ fi
}
build() {