rsys-cli icon indicating copy to clipboard operation
rsys-cli copied to clipboard

Add AUR installation

Open vv9k opened this issue 5 years ago • 2 comments

vv9k avatar Nov 09 '20 05:11 vv9k

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"
}

legendofmiracles avatar Nov 09 '20 18:11 legendofmiracles

Thanks for the contribution @alx365 , will definitely use it.

vv9k avatar Nov 10 '20 14:11 vv9k