52 lines
1.4 KiB
Bash
52 lines
1.4 KiB
Bash
#!/usr/bin/bash
|
|
# JOBoRun : Jwm OpenBox Obarun RUNit
|
|
# Maintainer : Joe Bo Run <joborun@disroot.org>
|
|
# PkgSource : url="https://gittea.disroot.org/joborun-pkg/jobextra/$pkgname"
|
|
# Website : https://pozol.eu
|
|
#-----------------------------------------| DESCRIPTION |---------------------------------------
|
|
|
|
pkgname=acpi_call-lts510
|
|
_pkgname=acpi_call-lts
|
|
pkgver=1.2.2
|
|
pkgrel=0167
|
|
pkgdesc='A linux kernel module that enables calls to ACPI methods through /proc/acpi/call 5.10 ver'
|
|
url='https://github.com/mkottman/acpi_call'
|
|
makedepends=('linux-lts-headers' "acpi_call-dkms=$pkgver")
|
|
conflicts=('acpi_call-dkms')
|
|
provides=('acpi_call')
|
|
#source=()
|
|
|
|
build() {
|
|
_kernver=$(</usr/src/linux-lts/version)
|
|
|
|
fakeroot dkms build --dkmstree "$srcdir" -m acpi_call/$pkgver -k $_kernver
|
|
}
|
|
|
|
package() {
|
|
depends=(linux-lts)
|
|
|
|
_kernver=$(</usr/src/linux-lts/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"
|
|
}
|
|
|
|
#---- arch license gpg-key & sha256sums ----
|
|
|
|
arch=(x86_64)
|
|
|
|
license=('GPL')
|
|
|
|
#sha256sums=(SKIP)
|
|
|
|
## 3eb6900ba7370367d258d2fe3da29b5b40e1f77cf9603f227f0ae3774cbbdc49 acpi_call-lts510-1.2.2-0167-x86_64.pkg.tar.lz
|
|
|