summaryrefslogtreecommitdiff
path: root/libre/acpi_call-libre-lts
diff options
context:
space:
mode:
authorAndré Fabian Silva Delgado <emulatorman@parabola.nu>2014-02-01 02:45:15 -0200
committerAndré Fabian Silva Delgado <emulatorman@parabola.nu>2014-02-01 02:45:15 -0200
commitd1d227432dbb159f6cf3365559bf6630c5f1d2fe (patch)
tree7e8dc505a074781b21e9374f6841174c94049197 /libre/acpi_call-libre-lts
parentf4fcfe83ea117c4091b4ae66b57697f1e6db52a3 (diff)
acpi_call-libre{,-lts}: add new packages on [libre]
Diffstat (limited to 'libre/acpi_call-libre-lts')
-rw-r--r--libre/acpi_call-libre-lts/PKGBUILD44
-rw-r--r--libre/acpi_call-libre-lts/acpi_call.install14
2 files changed, 58 insertions, 0 deletions
diff --git a/libre/acpi_call-libre-lts/PKGBUILD b/libre/acpi_call-libre-lts/PKGBUILD
new file mode 100644
index 000000000..3e14d035e
--- /dev/null
+++ b/libre/acpi_call-libre-lts/PKGBUILD
@@ -0,0 +1,44 @@
+# $Id: PKGBUILD 104847 2014-01-27 15:09:28Z alucryd $
+# Maintainer: Maxime Gauduin <alucryd@gmail.com>
+# Contributor: mortzu <me@mortzu.de>
+# Contributor: fnord0 <fnord0@riseup.net>
+
+_pkgname=acpi_call-lts
+pkgname=acpi_call-libre-lts
+pkgver=1.1.0
+pkgrel=1
+_extramodules=extramodules-3.10-LIBRE-LTS
+pkgdesc='A linux kernel module that enables calls to ACPI methods through /proc/acpi/call (built for the linux-libre-lts kernel package)'
+arch=('i686' 'x86_64')
+url="http://github.com/mkottman/${_pkgname%-*}"
+license=('GPL')
+depends=('linux-libre-lts>=3.10.26')
+makedepends=('linux-libre-lts-headers>=3.10.26')
+replaces="${_pkgname}"
+conflicts="${_pkgname}"
+provides=("${_pkgname%-*}" "${_pkgname}=${pkgver}")
+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:
diff --git a/libre/acpi_call-libre-lts/acpi_call.install b/libre/acpi_call-libre-lts/acpi_call.install
new file mode 100644
index 000000000..b0b89c675
--- /dev/null
+++ b/libre/acpi_call-libre-lts/acpi_call.install
@@ -0,0 +1,14 @@
+post_install() {
+ _extramodules=extramodules-3.10-LIBRE-LTS
+ depmod $(cat /usr/lib/modules/${_extramodules}/version)
+}
+
+post_upgrade() {
+ post_install
+}
+
+post_remove() {
+ post_install
+}
+
+# vim: ts=2 sw=2 et: