blob: a96649d677c2c89f8534e4c3c744a81ad9fabf84 (
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
|
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"
}
|