Browse Source

[trunk] -> [community-testing] 'acpi_call-1.2.2-50' add

master
artoo 2 months ago
parent
commit
6422823910
Signed by: artoo
GPG Key ID: 3292CD0BB0DB310B
  1. 2
      trunk/PKGBUILD
  2. 38
      x86_64/community-testing/PKGBUILD

2
trunk/PKGBUILD

@ -4,7 +4,7 @@
pkgname=acpi_call
pkgver=1.2.2
pkgrel=48
pkgrel=50
pkgdesc='A linux kernel module that enables calls to ACPI methods through /proc/acpi/call'
url='https://github.com/mkottman/acpi_call'
arch=('x86_64')

38
x86_64/community-testing/PKGBUILD

@ -0,0 +1,38 @@
# Maintainer: artoo <artoo@artixlinux.org>
# Contributor: mortzu <me@mortzu.de>
# Contributor: fnord0 <fnord0@riseup.net>
pkgname=acpi_call
pkgver=1.2.2
pkgrel=50
pkgdesc='A linux kernel module that enables calls to ACPI methods through /proc/acpi/call'
url='https://github.com/mkottman/acpi_call'
arch=('x86_64')
license=('GPL')
makedepends=('linux-headers' "acpi_call-dkms=$pkgver")
conflicts=('acpi_call-dkms')
build() {
_kernver=$(</usr/src/linux/version)
fakeroot dkms build --dkmstree "$srcdir" -m acpi_call/$pkgver -k $_kernver
}
package() {
depends=(linux)
_kernver=$(</usr/src/linux/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 {} +
echo acpi_call | install -Dm644 /dev/stdin "$pkgdir/usr/lib/modules-load.d/$pkgname.conf"
mkdir -p "$pkgdir/usr/share"
cp -a /usr/share/acpi_call "$pkgdir/usr/share/$pkgname"
}
# vim:set ts=2 sw=2 et:
Loading…
Cancel
Save