summaryrefslogtreecommitdiff
path: root/libre/acpi_call-dkms/PKGBUILD
blob: bf43b4ae9e4da3c0a6a30836122ad90fe23912ec (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
42
43
44
45
46
47
48
49
# Maintainer (arch): Maxime Gauduin <alucryd@archlinux.org>
# Contributor: mortzu <me@mortzu.de>
# Contributor: fnord0 <fnord0@riseup.net>
# Contributor: André Silva <emulatorman@hyperbola.info>
# Contributor: Márcio Silva <coadde@hyperbola.info>
# Maintainer: Omar Vega Ramos <ovruni@gnu.org.pe>


# build order:
#   acpi_call-dkms          <- acpi_call-lts
#                              acpi_call
#   linux-libre-lts-headers <- acpi_call-lts
#                              tp_smapi-lts
#   linux-libre-headers     <- acpi_call
#                              tp_smapi
#
# these packages may be built as a batch, with the helper script:
#   'scripts/package-all-acpi_call-tp_smapi'
# simply edit '_basekernel' in each # TODO: automate that too


_basekernel=5.18.14

pkgname=acpi_call-dkms
_tag='9f1c0b5d046bdfdec769809435257647fd475473' # git rev-parse v${_tag_name}
pkgver=1.2.2
pkgrel=1
pkgrel+=.parabola1.basekernel${_basekernel}
pkgdesc='A linux kernel module that enables calls to ACPI methods through /proc/acpi/call - module sources'
pkgdesc+=' (for linux-libre)'
url='https://github.com/nix-community/acpi_call'
arch=('any')
arch=('armv7h' 'i686' 'x86_64') # just to simplify the package-all-acpi_call-tp_smapi script
license=('GPL')
depends=('dkms')
makedepends=('git')
provides=("acpi_call=${pkgver}-${pkgrel%%.*}")
conflicts=('acpi_call')
source=("git+https://github.com/nix-community/acpi_call.git#tag=${_tag}"
        'dkms.conf')
b2sums=('SKIP'
        '504da1102e778fe54368e990408dbef02f5b2ce91f683d170f3d6a1a2f9349d00d61dcbddd0262a8dfc958ea0964135ba58d8dd88ac06bd10b5e13b90f11faef')

package() {
  install -D -m0644 acpi_call/{Makefile,acpi_call.c} dkms.conf -t "${pkgdir}"/usr/src/acpi_call-${pkgver}
  echo acpi_call | install -D -m0644 /dev/stdin "${pkgdir}"/usr/lib/modules-load.d/acpi_call.conf
  install -d -m0755 "${pkgdir}"/usr/share/acpi_call
  cp -dr --no-preserve=ownership acpi_call/{examples,support} "${pkgdir}"/usr/share/acpi_call/
}