rsys-cli
rsys-cli copied to clipboard
Add AUR installation
The following PKGBUILD will work, as a git package:
# PKGBUILD created by using cargo-aur-packer
pkgname='rsys-cli-git'
pkgver=0.1.0.188.g1a0da10
pkgrel=1
pkgdesc='CLI tool for quick access to system information '
arch=('any')
url='https://github.com/wojciechkepka/rsys-cli'
license=('MIT')
sha256sums=('SKIP')
makedepends=('rust' 'cargo' 'git')
source=('rsys-cli-git::git+https://github.com/wojciechkepka/rsys-cli')
pkgver() {
cd "$pkgname"
echo "$(grep '^version =' Cargo.toml|head -n1|cut -d\" -f2).$(git rev-list --count HEAD).g$(git rev-parse --short HEAD)" | tr '-' '.'
}
build() {
cargo build --release --locked --all-features --target-dir=target
}
check() {
cargo test --release --locked --target-dir=target
}
package() {
install -Dm 755 target/release/rsys -t "${pkgdir}/usr/bin"
install -Dm 755 $pkgname/LICENSE "${pkgdir}/usr/share/licenses/rsys-cli"
}
Thanks for the contribution @alx365 , will definitely use it.