# Maintainer: Andrew Ryan # pkgname=crates-cli-git _pkgname="crates-cli" pkgver=1.0.3 pkgrel=1 pkgdesc="Rust writed CLI for search crates in terminal" url="https://dnrops.gitee.io" license=("MIT") arch=("x86_64") provides=($_pkgname) conflicts=($_pkgname) source=("$pkgname::git+https://gitcode.net/dnrops/crates-cli-git.git") sha256sums=('SKIP') build() { cd "$srcdir/$pkgname" export CARGO_TARGET_DIR=target cargo fetch --target "$CARCH-unknown-linux-gnu" cargo build --frozen --release } package() { cd "$srcdir/$pkgname" install -Dm 755 "target/release/$_pkgname" -t "$pkgdir/usr/bin/" }