summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorquininer2018-12-09 23:42:04 +0800
committerquininer2018-12-09 23:42:04 +0800
commit111fc8f693de8bc0d8e5de832b24544038f22580 (patch)
tree1b7982489d894daefdaeeebd5f11870333338baa
downloadaur-rustup-toolchain-install-master-git.tar.gz
init
-rw-r--r--.SRCINFO17
-rw-r--r--PKGBUILD29
2 files changed, 46 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 000000000000..7f4acf503805
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,17 @@
+pkgbase = rustup-toolchain-install-master-git
+ pkgdesc = Install a rustc master toolchain usable from rustup
+ pkgver = 1.5.0.45.g15a2bb5
+ pkgrel = 1
+ url = https://github.com/kennytm/rustup-toolchain-install-master
+ arch = x86_64
+ arch = i686
+ license = MIT
+ makedepends = cargo
+ depends = rustup
+ provides = rustup-toolchain-install-master
+ conflicts = rustup-toolchain-install-master
+ source = rustup-toolchain-install-master-git::git+https://github.com/kennytm/rustup-toolchain-install-master
+ sha256sums = SKIP
+
+pkgname = rustup-toolchain-install-master-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 000000000000..a96649d677c2
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,29 @@
+pkgname=rustup-toolchain-install-master-git
+pkgver=1.5.0.45.g15a2bb5
+pkgrel=1
+pkgdesc="Install a rustc master toolchain usable from rustup"
+arch=('x86_64' 'i686')
+url="https://github.com/kennytm/rustup-toolchain-install-master"
+license=('MIT')
+depends=('rustup')
+makedepends=('cargo')
+optdepends=()
+provides=('rustup-toolchain-install-master')
+conflicts=('rustup-toolchain-install-master')
+source=($pkgname::git+https://github.com/kennytm/rustup-toolchain-install-master)
+sha256sums=('SKIP')
+
+pkgver() {
+ cd $pkgname
+ echo $(grep '^version =' Cargo.toml|head -n1|cut -d\" -f2).$(git rev-list --count HEAD).g$(git describe --always)
+}
+
+build() {
+ cd $pkgname
+ cargo build --release
+}
+
+package() {
+ cd $pkgname
+ install -D -m755 "$srcdir/$pkgname/target/release/rustup-toolchain-install-master" "$pkgdir/usr/bin/rustup-toolchain-install-master"
+}