# Maintainer: Caleb Bassi # https://wiki.archlinux.org/index.php/Rust_package_guidelines pkgname=ytop pkgver={{ VERSION }} pkgrel=1 pkgdesc="A TUI system monitor written in Rust" arch=(x86_64) url="https://github.com/cjbassi/ytop" license=("MIT") makedepends=("cargo") provides=(${pkgname}) conflicts=(${pkgname}) source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/${pkgver}.tar.gz") sha256sums=("{{ REPO_SHA256 }}") build() { cd "${pkgname}-${pkgver}" cargo build --release --locked --all-features } package() { install -Dm755 "${pkgname}-${pkgver}/target/release/${pkgname}" "${pkgdir}/usr/bin/${pkgname}" }