[arch-commits] Commit in rustup/repos (6 files)
Sven-Hendrik Haase
svenstaro at archlinux.org
Mon Oct 10 10:09:31 UTC 2016
Date: Monday, October 10, 2016 @ 10:09:31
Author: svenstaro
Revision: 191822
archrelease: copy trunk to community-i686, community-x86_64
Added:
rustup/repos/community-i686/
rustup/repos/community-i686/PKGBUILD
(from rev 191821, rustup/trunk/PKGBUILD)
rustup/repos/community-i686/post.install
(from rev 191821, rustup/trunk/post.install)
rustup/repos/community-x86_64/
rustup/repos/community-x86_64/PKGBUILD
(from rev 191821, rustup/trunk/PKGBUILD)
rustup/repos/community-x86_64/post.install
(from rev 191821, rustup/trunk/post.install)
-------------------------------+
community-i686/PKGBUILD | 34 ++++++++++++++++++++++++++++++++++
community-i686/post.install | 8 ++++++++
community-x86_64/PKGBUILD | 34 ++++++++++++++++++++++++++++++++++
community-x86_64/post.install | 8 ++++++++
4 files changed, 84 insertions(+)
Copied: rustup/repos/community-i686/PKGBUILD (from rev 191821, rustup/trunk/PKGBUILD)
===================================================================
--- community-i686/PKGBUILD (rev 0)
+++ community-i686/PKGBUILD 2016-10-10 10:09:31 UTC (rev 191822)
@@ -0,0 +1,34 @@
+# 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')
+conflicts=('rust' 'cargo')
+install='post.install'
+source=("rustup-${pkgver}.tar.gz::https://github.com/rust-lang-nursery/rustup.rs/archive/${pkgver}.tar.gz")
+md5sums=('4c4d5982af51515ddccd16e6a10c405c')
+
+build() {
+ msg2 "Building rustup"
+ cd "$srcdir/$pkgname.rs-${pkgver}"
+ 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-${pkgver}"
+ install -dm755 "$pkgdir/usr/bin"
+ cp "$srcdir/tmp/.cargo/bin"/* "$pkgdir/usr/bin/"
+}
+
+# vim:filetype=sh:
Copied: rustup/repos/community-i686/post.install (from rev 191821, rustup/trunk/post.install)
===================================================================
--- community-i686/post.install (rev 0)
+++ community-i686/post.install 2016-10-10 10:09:31 UTC (rev 191822)
@@ -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"
+}
Copied: rustup/repos/community-x86_64/PKGBUILD (from rev 191821, rustup/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD (rev 0)
+++ community-x86_64/PKGBUILD 2016-10-10 10:09:31 UTC (rev 191822)
@@ -0,0 +1,34 @@
+# 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')
+conflicts=('rust' 'cargo')
+install='post.install'
+source=("rustup-${pkgver}.tar.gz::https://github.com/rust-lang-nursery/rustup.rs/archive/${pkgver}.tar.gz")
+md5sums=('4c4d5982af51515ddccd16e6a10c405c')
+
+build() {
+ msg2 "Building rustup"
+ cd "$srcdir/$pkgname.rs-${pkgver}"
+ 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-${pkgver}"
+ install -dm755 "$pkgdir/usr/bin"
+ cp "$srcdir/tmp/.cargo/bin"/* "$pkgdir/usr/bin/"
+}
+
+# vim:filetype=sh:
Copied: rustup/repos/community-x86_64/post.install (from rev 191821, rustup/trunk/post.install)
===================================================================
--- community-x86_64/post.install (rev 0)
+++ community-x86_64/post.install 2016-10-10 10:09:31 UTC (rev 191822)
@@ -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