summaryrefslogtreecommitdiff
path: root/libre/acpi_call-lts/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'libre/acpi_call-lts/PKGBUILD')
-rw-r--r--libre/acpi_call-lts/PKGBUILD33
1 files changed, 15 insertions, 18 deletions
diff --git a/libre/acpi_call-lts/PKGBUILD b/libre/acpi_call-lts/PKGBUILD
index 3cfb2fc5e..60abfb5a2 100644
--- a/libre/acpi_call-lts/PKGBUILD
+++ b/libre/acpi_call-lts/PKGBUILD
@@ -5,17 +5,18 @@
# Contributor (Hyperbola): Márcio Silva <coadde@hyperbola.info>
# Maintainer: Omar Vega Ramos <ovruni@gnu.org.pe>
-_basekernel=4.14
-_archrel=69
-_parabolarel=1
+_basekernel=4.19
pkgname=acpi_call-lts
pkgver=1.1.0
-pkgrel=${_archrel}.parabola${_parabolarel}.basekernel${_basekernel}
+pkgrel=78
_extramodules=extramodules-${_basekernel}-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' 'armv7h')
-url="http://github.com/mkottman/acpi_call"
+pkgrel+=.parabola1.basekernel${_basekernel}
+pkgdesc='A linux kernel module that enables calls to ACPI methods through /proc/acpi/call'
+pkgdesc+=' (built for the linux-libre-lts kernel package)'
+arch=('x86_64')
+arch+=('i686' 'armv7h')
+url='https://github.com/mkottman/acpi_call'
license=('GPL')
# Generic (you shouldn't have to modify any of these variables)
@@ -24,15 +25,12 @@ depends=("linux-libre-lts>=${_basekernel}" "linux-libre-lts<${_toohigh}")
makedepends=("linux-libre-lts-headers>=${_basekernel}" "linux-libre-lts-headers<${_toohigh}" "linux-libre-lts>=${_basekernel}" "linux-libre-lts<${_toohigh}")
makedepends+=('libelf')
-replaces=("${pkgname%-*}-libre-lts" "${pkgname%-*}-parabola-lts" "${pkgname}-parabola")
-conflicts=("${pkgname%-*}-libre-lts" "${pkgname%-*}-parabola-lts" "${pkgname}-parabola")
-provides=("acpi_call")
-
-source=("${pkgname%-*}-${pkgver}.tar.gz::${url}/archive/v${pkgver}.tar.gz")
+provides=('acpi_call')
+source=("acpi_call-${pkgver}.tar.gz::${url}/archive/v${pkgver}.tar.gz")
sha256sums=('d0d14b42944282724fca76f57d598eed794ef97448f387d1c489d85ad813f2f0')
prepare() {
- cd "${pkgname%-*}-${pkgver}"
+ cd acpi_call-${pkgver}
# Fix build with Linux-libre >= 3.17-gnu
sed -i 's|acpi/acpi.h|linux/acpi.h|' acpi_call.c
@@ -41,7 +39,7 @@ prepare() {
}
build() {
- cd "${pkgname%-*}-${pkgver}"
+ cd ${pkgname%-*}-${pkgver}
_kernver="$(cat /usr/lib/modules/${_extramodules}/version)"
@@ -49,11 +47,10 @@ build() {
}
package() {
- cd "${pkgname%-*}-$pkgver"
+ cd ${pkgname%-*}-${pkgver}
- # Actually install
install -dm 755 "${pkgdir}"/usr/lib/{modules/${_extramodules},modules-load.d}
- install -m 644 ${pkgname%-*}.ko "${pkgdir}"/usr/lib/modules/${_extramodules}
+ 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
@@ -61,4 +58,4 @@ package() {
cp -dr --no-preserve='ownership' {examples,support} "${pkgdir}"/usr/share/${pkgname}/
}
-# vim:set ts=2 sw=2 et:
+# vim: ts=2 sw=2 et: