# Maintainer: Artem Vorotnikov pkgname=sendme pkgver=0.2.2 pkgrel=1 pkgdesc="A tool to send files and directories, based on iroh" arch=('any') url="https://github.com/n0-computer/sendme" license=('MIT' 'Apache') makedepends=('cargo') source=("$pkgname-$pkgver.tar.gz::https://static.crates.io/crates/$pkgname/$pkgname-$pkgver.crate") b2sums=('61baef285996c9f3433c89b74fa4e03574865d85d18b3968ee1bf6435e3b6039b4a9011ff978997e86a3decbc6317d4566c2cb51066c0066f21dbe1a142a9646') prepare() { cd $pkgname-$pkgver export RUSTUP_TOOLCHAIN=stable cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')" } build() { cd $pkgname-$pkgver export RUSTUP_TOOLCHAIN=stable export CARGO_TARGET_DIR=target cargo build --frozen --release --all-features } check() { cd $pkgname-$pkgver export RUSTUP_TOOLCHAIN=stable cargo test --frozen --all-features } package() { cd $pkgname-$pkgver install -Dm0755 -t "$pkgdir/usr/bin/" "target/release/$pkgname" }