summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libre/acpi_call/PKGBUILD9
1 files changed, 9 insertions, 0 deletions
diff --git a/libre/acpi_call/PKGBUILD b/libre/acpi_call/PKGBUILD
index a8f98fc8f..2bb18f24b 100644
--- a/libre/acpi_call/PKGBUILD
+++ b/libre/acpi_call/PKGBUILD
@@ -68,6 +68,15 @@ install='kmod.install'
source=("${url}/archive/v${pkgver}.tar.gz")
sha256sums=('d0d14b42944282724fca76f57d598eed794ef97448f387d1c489d85ad813f2f0')
+prepare() {
+ cd "${srcdir}/${_pkgname}-${pkgver}"
+
+ if [[ ${_basekernel} > 3.16 ]]; then
+ # Fix build with Linux-libre 3.17-gnu
+ sed -i 's|acpi/acpi.h|linux/acpi.h|' acpi_call.c
+ fi
+}
+
build() {
cd "${srcdir}/${_pkgname}-${pkgver}"