blob: 02a5a64cf72c020af8e3e00ae8ac25573e25c99d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
# Maintainer: Sanpi <sanpi+aur@homecomputing.fr>
pkgname=xargo
pkgver=0.3.26
pkgrel=2
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=('rust' 'gcc-libs-multilib')
makedepends=('cargo')
source=("$url/archive/v$pkgver.zip")
sha256sums=('8626b357ee89883c3dd7521118ae624e23231406e505718de4f2b0a9f805d472')
prepare()
{
cd "$srcdir/$pkgname-$pkgver"
cargo fetch --locked --target "$CARCH-unknown-linux-gnu"
}
build()
{
cd "$pkgname-$pkgver"
cargo build --frozen --release
}
package()
{
cd "$pkgname-$pkgver"
install --mode 755 --directory "$pkgdir/usr/bin"
install --mode 755 target/release/xargo "$pkgdir/usr/bin"
install -Dm 644 LICENSE-MIT "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
|