summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorAbuzer Rafey2018-02-26 03:50:37 -0500
committerAbuzer Rafey2018-02-26 03:50:37 -0500
commit3ac4917235dfab96dbfff25203113eb26a21df9f (patch)
tree6a6a59fb8db640caf71a7f0d21f7681eb3f1b215 /PKGBUILD
parent5186dd32372a9de80193d9b7b8a9dbf79875775c (diff)
downloadaur-3ac4917235dfab96dbfff25203113eb26a21df9f.tar.gz
Switch to XZ archive and add automatic checksums
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD11
1 files changed, 6 insertions, 5 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 8dddb7f11c8..02549ab907b 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -5,20 +5,21 @@
pkgbase=rust-nightly
pkgname=('rust-nightly' 'rust-nightly-doc')
pkgver=1.26.0_2018.02.25
-pkgrel=1
+pkgrel=2
arch=('i686' 'x86_64')
pkgdesc='A safe, concurrent, practical language'
url='http://www.rust-lang.org/'
license=('MIT' 'Apache')
makedepends=('libffi' 'perl' 'python2' 'curl' 'llvm' 'cargo')
-source=("https://static.rust-lang.org/dist/rustc-nightly-src.tar.gz"
- "https://static.rust-lang.org/dist/rustc-nightly-src.tar.gz.asc")
+_src="https://static.rust-lang.org/dist/rustc-nightly-src.tar.xz"
+source=($_src
+ $_src.asc)
options=('staticlibs' '!strip' '!emptydirs' '!makeflags')
conflicts=('rust')
provides=('rust')
-sha256sums=('SKIP'
- 'SKIP')
validpgpkeys=('108F66205EAEB0AAA8DD5E1C85AB96E6FA1BE5FE')
+sha256sums=("$(curl -sL $_src.sha256 | cut -d\ -f1)"
+ "SKIP")
export RUSTFLAGS="$RUSTFLAGS -C link-args=-lffi"