Skip to content

Commit

Permalink
[trunk] -> [community-testing] 'acpi_call-1.2.2-126' add
Browse files Browse the repository at this point in the history
  • Loading branch information
udeved committed May 11, 2023
1 parent b146ac5 commit d374866
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 1 deletion.
3 changes: 2 additions & 1 deletion acpi_call/trunk/PKGBUILD
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
# Maintainer: artoo <[email protected]>
# Contributor: Maxime Gauduin <[email protected]>
# Contributor: mortzu <[email protected]>
# Contributor: fnord0 <[email protected]>

pkgname=acpi_call
pkgver=1.2.2
pkgrel=124
pkgrel=126
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')
Expand Down
39 changes: 39 additions & 0 deletions acpi_call/x86_64/community-testing/PKGBUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# Maintainer: artoo <[email protected]>
# Contributor: Maxime Gauduin <[email protected]>
# Contributor: mortzu <[email protected]>
# Contributor: fnord0 <[email protected]>

pkgname=acpi_call
pkgver=1.2.2
pkgrel=126
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:

0 comments on commit d374866

Please sign in to comment.