diff options
author | André Fabian Silva Delgado <emulatorman@parabola.nu> | 2014-10-23 20:44:43 -0200 |
---|---|---|
committer | André Fabian Silva Delgado <emulatorman@parabola.nu> | 2014-10-23 20:44:43 -0200 |
commit | 2ee8af0056ce7a3df107db877e8152447fbe99e2 (patch) | |
tree | 7ee0036b6c88d6b5db048904087916f58e23d2dd /libre/acpi_call | |
parent | 4441af8bee25648c586cb221a348b0e7e320a36f (diff) | |
download | abslibre-2ee8af0056ce7a3df107db877e8152447fbe99e2.tar.gz abslibre-2ee8af0056ce7a3df107db877e8152447fbe99e2.tar.bz2 abslibre-2ee8af0056ce7a3df107db877e8152447fbe99e2.zip |
acpi_call: fix build with Linux-libre 3.17-gnu
Diffstat (limited to 'libre/acpi_call')
-rw-r--r-- | libre/acpi_call/PKGBUILD | 9 |
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}" |