blob: 0625cb17667fec6646c7eae0ad98770b85e19399 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
# Maintainer (Arch): Maxime Gauduin <alucryd@archlinux.org>
# Contributor (Arch): mortzu <me@mortzu.de>
# Contributor (Arch): fnord0 <fnord0@riseup.net>
# Contributor (Hyperbola): André Silva <emulatorman@hyperbola.info>
# Contributor (Hyperbola): Márcio Silva <coadde@hyperbola.info>
# Maintainer: Omar Vega Ramos <ovruni@gnu.org.pe>
_basekernel=5.5.13-1
pkgname=acpi_call
pkgver=1.1.0
pkgrel=301
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 kernel package)'
url='https://github.com/mkottman/acpi_call'
arch=('x86_64')
arch+=('i686')
license=('GPL')
makedepends=("linux-libre-headers=${_basekernel%-*}" "acpi_call-dkms=$pkgver")
conflicts=('acpi_call-dkms')
build() {
_kernver=$(</usr/src/linux-libre/version)
dkms build --dkmstree "$srcdir" -m acpi_call/$pkgver -k $_kernver
}
package() {
depends=(linux-libre=${_basekernel%-*})
_kernver=$(</usr/src/linux-libre/version)
install -Dt "$pkgdir/usr/lib/modules/$_kernver/extramodules" -m0644 \
acpi_call/${pkgver}/$_kernver/$CARCH/module/*
# compress each module individually
find "$pkgdir" -name '*.ko' -exec xz -T1 {} +
}
# vim:set ts=2 sw=2 et:
|