[arch-commits] Commit in (5 files)
Sven-Hendrik Haase
svenstaro at archlinux.org
Mon Oct 10 09:56:47 UTC 2016
Date: Monday, October 10, 2016 @ 09:56:46
Author: svenstaro
Revision: 191818
Moving rustup from AUR
Added:
rustup/
rustup/repos/
rustup/trunk/
rustup/trunk/PKGBUILD
rustup/trunk/post.install
--------------+
PKGBUILD | 45 +++++++++++++++++++++++++++++++++++++++++++++
post.install | 8 ++++++++
2 files changed, 53 insertions(+)
Added: rustup/trunk/PKGBUILD
===================================================================
--- rustup/trunk/PKGBUILD (rev 0)
+++ rustup/trunk/PKGBUILD 2016-10-10 09:56:46 UTC (rev 191818)
@@ -0,0 +1,45 @@
+# Maintainer: Sven-Hendrik Haase <sh at lutzhaase.com>
+# Contributor: Jon Gjengset <jon at tsp.io>
+pkgname=rustup
+pkgver=0.6.3
+pkgrel=2
+
+pkgdesc="The Rust toolchain installer"
+arch=('i686' 'x86_64')
+url="https://github.com/rust-lang-nursery/rustup.rs"
+license=('MIT' 'Apache')
+makedepends=('cargo')
+provides=('rust' 'cargo' 'rust-nightly' 'cargo-nightly')
+conflicts=('rust' 'cargo' 'rust-nightly' 'rust-nightly-bin' 'multirust' 'multirust-git')
+replaces=('multirust' 'multirust-git')
+install='post.install'
+
+source=("rustup-${pkgver}.tar.gz::https://github.com/rust-lang-nursery/rustup.rs/archive/${pkgver}.tar.gz")
+md5sums=('4c4d5982af51515ddccd16e6a10c405c')
+
+prepare() {
+ # instead of building directly in -$pkgver, we copy files over into a
+ # shared directory -- this may allow for incremental builds
+ test -e "$srcdir/$pkgname.rs" || mkdir "$srcdir/$pkgname.rs"
+ cp -r "$srcdir/$pkgname.rs-${pkgver}"/* "$srcdir/$pkgname.rs/"
+ rm -rf "$srcdir/$pkgname.rs-${pkgver}"
+}
+
+build() {
+ msg2 "Building rustup"
+ cd "$srcdir/$pkgname.rs"
+ cargo update
+ cargo build --release --features no-self-update --bin rustup-init
+
+ msg2 "Running rustup-init"
+ mkdir -p "$srcdir/tmp/.cargo"
+ env -u CARGO_HOME "HOME=$srcdir/tmp" target/release/rustup-init -y --no-modify-path
+}
+
+package() {
+ cd "$pkgname.rs"
+ install -dm755 "$pkgdir/usr/bin"
+ cp "$srcdir/tmp/.cargo/bin"/* "$pkgdir/usr/bin/"
+}
+
+# vim:filetype=sh:
Added: rustup/trunk/post.install
===================================================================
--- rustup/trunk/post.install (rev 0)
+++ rustup/trunk/post.install 2016-10-10 09:56:46 UTC (rev 191818)
@@ -0,0 +1,8 @@
+post_install() {
+ echo "You may need to run rustup update stable"
+ echo "and possibly also rustup self upgrade-data"
+}
+
+post_upgrade() {
+ echo "You may need to run rustup self upgrade-data"
+}
More information about the arch-commits
mailing list