blob: 11062c4bc553bec28aeeb4a1c577d9214f1a1f9b (
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
|
# Maintainer: Chris Sutcliff <chris@sutcliff.me>
pkgname=keychron-battery-dkms
pkgver=0.1.1
pkgrel=1
pkgdesc="HID driver for Keychron mouse battery reporting via power_supply subsystem"
arch=('x86_64')
url="https://github.com/csutcliff/keychron-battery-dkms"
license=('GPL-2.0-only')
depends=('dkms')
makedepends=()
optdepends=('linux-headers: build the module against the Arch stock kernel'
'linux-lts-headers: build the module against the LTS kernel'
'linux-cachyos-headers: build the module against the CachyOS kernel')
provides=('keychron-battery')
conflicts=('keychron-battery')
source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/refs/tags/v${pkgver}.tar.gz")
sha256sums=('172b0d0363a118f8d6a2e745f5b293c551df80de952365a8ce0028ed6e9cda0b')
package() {
local install_dir="${pkgdir}/usr/src/${pkgname%-dkms}-${pkgver}"
cd "${srcdir}/${pkgname}-${pkgver}"
install -Dm644 keychron_battery.c "${install_dir}/keychron_battery.c"
install -Dm644 Makefile "${install_dir}/Makefile"
install -Dm644 dkms.conf "${install_dir}/dkms.conf"
}
|