summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b6d0347f98222fc602207519f3c084c544f2bf4e (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
# Maintainer: DucktectiveCZ <ducktectivecz@seznam.cz>
# Contributor: DucktectiveCZ <ducktectivecz@seznam.cz>

pkgname=batteryctl
pkgver=1.1.0
pkgrel=3
pkgdesc="An open-source Rust-based command-line tool for interacting with batteries."
arch=('x86_64')
url="https://github.com/DucktectiveCZ/batteryctl"
license=('MIT')
makedepends=('cargo' 'git')
depends=('gcc-libs' 'glibc')
source=("git+https://github.com/DucktectiveCZ/batteryctl.git")
sha256sums=('SKIP')

build() {
    cd "$srcdir/$pkgname"
    cargo build --release
}

package() {
    cd "$srcdir/$pkgname"
    install -Dm755 target/release/batteryctl "$pkgdir/usr/bin/batteryctl"
}