summaryrefslogtreecommitdiff
path: root/community/acpi_call/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/acpi_call/PKGBUILD')
-rw-r--r--community/acpi_call/PKGBUILD40
1 files changed, 40 insertions, 0 deletions
diff --git a/community/acpi_call/PKGBUILD b/community/acpi_call/PKGBUILD
new file mode 100644
index 000000000..c0bd2efcf
--- /dev/null
+++ b/community/acpi_call/PKGBUILD
@@ -0,0 +1,40 @@
+# $Id: PKGBUILD 104848 2014-01-27 15:11:04Z alucryd $
+# Maintainer: Maxime Gauduin <alucryd@gmail.com>
+# Contributor: mortzu <me@mortzu.de>
+# Contributor: fnord0 <fnord0@riseup.net>
+
+pkgname=acpi_call
+pkgver=1.1.0
+pkgrel=1
+_extramodules=extramodules-3.12-ARCH
+pkgdesc='A linux kernel module that enables calls to ACPI methods through /proc/acpi/call'
+arch=('i686' 'x86_64')
+url="http://github.com/mkottman/${pkgname}"
+license=('GPL')
+depends=('linux>=3.12' 'linux<3.13')
+makedepends=('linux-headers>=3.12' 'linux-headers<3.13')
+install="${pkgname}.install"
+source=("${url}/archive/v${pkgver}.tar.gz")
+sha256sums=('d0d14b42944282724fca76f57d598eed794ef97448f387d1c489d85ad813f2f0')
+
+build() {
+ cd ${pkgname}-${pkgver}
+
+ _kernver="$(cat /usr/lib/modules/${_extramodules}/version)"
+
+ make KVERSION="${_kernver}"
+}
+
+package() {
+ cd ${pkgname}-${pkgver}
+
+ install -dm 755 "${pkgdir}"/usr/lib/{modules/${_extramodules},modules-load.d}
+ install -m 644 ${pkgname}.ko "${pkgdir}"/usr/lib/modules/${_extramodules}
+ gzip "${pkgdir}"/usr/lib/modules/${_extramodules}/${pkgname}.ko
+ echo ${pkgname} > "${pkgdir}"/usr/lib/modules-load.d/${pkgname}.conf
+
+ install -dm 755 "${pkgdir}"/usr/share/${pkgname}
+ cp -dr --no-preserve='ownership' {examples,support} "${pkgdir}"/usr/share/${pkgname}/
+}
+
+# vim: ts=2 sw=2 et: