Date: Friday, July 31, 2020 @ 18:38:53 Author: heftig Revision: 666291
archrelease: copy trunk to community-testing-x86_64 Added: acpi_call/repos/community-testing-x86_64/ acpi_call/repos/community-testing-x86_64/PKGBUILD (from rev 666285, acpi_call/trunk/PKGBUILD) ----------+ PKGBUILD | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) Copied: acpi_call/repos/community-testing-x86_64/PKGBUILD (from rev 666285, acpi_call/trunk/PKGBUILD) =================================================================== --- community-testing-x86_64/PKGBUILD (rev 0) +++ community-testing-x86_64/PKGBUILD 2020-07-31 18:38:53 UTC (rev 666291) @@ -0,0 +1,40 @@ +# Maintainer: Maxime Gauduin <aluc...@archlinux.org> +# Contributor: mortzu <m...@mortzu.de> +# Contributor: fnord0 <fno...@riseup.net> + +pkgname=acpi_call +pkgver=1.1.0 +pkgrel=335 +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: + +