diff options
author | Sanpi | 2016-10-18 20:02:13 +0200 |
---|---|---|
committer | Sanpi | 2016-10-18 20:02:13 +0200 |
commit | ffbc595380978e164e012cc7ec7b466e60712890 (patch) | |
tree | f479397fe13b3510c9cefd4ad25a77903ce50f8e | |
download | aur-ffbc595380978e164e012cc7ec7b466e60712890.tar.gz |
Initial import
-rw-r--r-- | .SRCINFO | 14 | ||||
-rw-r--r-- | .gitignore | 4 | ||||
-rw-r--r-- | PKGBUILD | 27 |
3 files changed, 45 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..2bab3444e47a --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,14 @@ +pkgbase = xargo + pkgdesc = Effortless cross compilation of Rust programs to custom bare-metal targets like ARM Cortex-M + pkgver = 0.2.0 + pkgrel = 1 + url = https://github.com/japaric/xargo + arch = x86_64 + license = Apache-2.0 + license = MIT + makedepends = cargo + source = https://github.com/japaric/xargo/archive/v0.2.0.zip + sha256sums = 94736ca70961469b7caf170663835403ff7b170e161ccaee9caee9fa8563264e + +pkgname = xargo + diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..5a4b7259ef3e --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +/pkg +/*.pkg.tar.xz +/*.zip +/src diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..7851d9c42e65 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,27 @@ +# Maintainer: Sanpi <sanpi+aur@homecomputing.fr> +pkgname=xargo +pkgver=0.2.0 +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-2.0' 'MIT') +depends=('rustup') +makedepends=('cargo') +source=("$url/archive/v$pkgver.zip") +sha256sums=('94736ca70961469b7caf170663835403ff7b170e161ccaee9caee9fa8563264e') + +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" +} |