blob: b30d89c9560ab324e0598f382c3d5986188c02d4 (
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
27
28
29
30
31
32
33
|
# Maintainer: Ben Woodward <ben@benwoodward.me.uk>
# Contributer: Egor Vorontsov <sdoregor@sdore.me>
pkgname=huawei-wmi
pkgver=1.2.0
pkgrel=1
pkgdesc="Sets group write privileges and reinstates battery charge-thresholds."
arch=(any)
url="https://github.com/qu1x/huawei-wmi"
license=('custom:Fair')
optdepends=('huawei-wmi-dkms: for kernel <5.5')
install='huawei-wmi.install'
source=("https://github.com/qu1x/huawei-wmi/archive/v${pkgver}.tar.gz"
'huawei-wmi.users'
'huawei-wmi.files')
sha256sums=('566fcc3990225463dc5b13a18411669fa4849172e980a8f3da6631bd9b44ea7f'
'd56eea27ee8dad292956d3a39e6d47f5acba676da56890c9b73081789782975e'
'7179b5ca0ef6fae55a33dac664a5de853aab8c898cc6c2ff6d2f8a4cb6c0eb42')
package() {
cd "${pkgname}-${pkgver}"
install -Dm644 "${srcdir}/huawei-wmi.users" "${pkgdir}/usr/lib/sysusers.d/huawei-wmi.conf"
install -Dm644 "${srcdir}/huawei-wmi.files" "${pkgdir}/usr/lib/tmpfiles.d/huawei-wmi.conf"
cd './generic'
install -Dm644 'LICENSE' -t "${pkgdir}/usr/share/licenses/${pkgname}/"
cd "./${pkgname}-${pkgver}"
install -d "${pkgdir}/etc/default/huawei-wmi"
install -Dm644 '10-huawei-wmi.rules' -t "${pkgdir}/usr/lib/udev/rules.d/"
install -Dm644 'huawei-wmi-'{privilege,reinstate}'.service' -t "${pkgdir}/usr/lib/systemd/system/"
install -Dm755 'available' 'privilege' 'reinstate' -t "${pkgdir}/usr/lib/huawei-wmi/"
}
|