summaryrefslogtreecommitdiff
path: root/community/acpi_call-lts/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/acpi_call-lts/PKGBUILD')
-rw-r--r--community/acpi_call-lts/PKGBUILD41
1 files changed, 41 insertions, 0 deletions
diff --git a/community/acpi_call-lts/PKGBUILD b/community/acpi_call-lts/PKGBUILD
new file mode 100644
index 000000000..da5d7037b
--- /dev/null
+++ b/community/acpi_call-lts/PKGBUILD
@@ -0,0 +1,41 @@
+# $Id: PKGBUILD 104853 2014-01-27 15:22:07Z alucryd $
+# Maintainer: Maxime Gauduin <alucryd@gmail.com>
+# Contributor: mortzu <me@mortzu.de>
+# Contributor: fnord0 <fnord0@riseup.net>
+
+pkgname=acpi_call-lts
+pkgver=1.1.0
+pkgrel=1
+_extramodules=extramodules-3.10-lts
+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-lts>=3.10.26')
+makedepends=('linux-lts-headers>=3.10.26')
+provides=("${pkgname%-*}")
+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: