blob: d96b752e0a09e3d05d2566722fb9cf4224ec7cc2 (
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
34
35
36
|
pkgname=hyperx-cloud-flight-git
pkgver=0.1.3.0.gfac59f3
pkgrel=1
pkgdesc='HyperX Cloud Flight Battery and Mute Monitoring (GIT version)'
arch=('x86_64')
url='https://github.com/kondinskis/hyperx-cloud-flight'
license=('MIT')
depends=('dbus'
'hidapi'
)
makedepends=('git'
'cargo'
)
provides=('hyperx-cloud-flight')
conflicts=('hyperx-cloud-flight')
source=('git+https://github.com/kondinskis/hyperx-cloud-flight.git'
)
sha256sums=('SKIP')
pkgver() {
cd hyperx-cloud-flight
echo "$(git describe --long --tags | tr - .)"
}
build() {
cd hyperx-cloud-flight
cargo build --release -vv
}
package() {
cd hyperx-cloud-flight
install -Dm755 target/release/cloud-flight "${pkgdir}/usr/bin/cloud-flight"
install -Dm644 99-hyperx-cloud-flight.rules "${pkgdir}/usr/lib/udev/rules.d/99-hyperx-cloud-flight.rules"
install -Dm644 LICENSE.md "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.md"
}
|