# Maintainer: Sanpi pkgname=xargo pkgver=0.3.3 pkgrel=1 pkgdesc='Effortless cross compilation of Rust programs to custom bare-metal targets like ARM Cortex-M' url="https://github.com/japaric/$pkgname" arch=('x86_64') license=('Apache' 'MIT') depends=('rustup' 'gcc-libs-multilib') makedepends=('cargo') source=("$url/archive/v$pkgver.zip") sha256sums=('c5f761907b144e2d637085afe368beabceeacbf659c8f784afd197ced3742ced') build() { cd "$pkgname-$pkgver" cargo build --release } package() { cd "$pkgname-$pkgver" install --mode 755 --directory "$pkgdir/usr/bin" install --mode 755 target/release/xargo "$pkgdir/usr/bin" }