summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorAbuzer Rafey2018-02-26 03:50:37 -0500
committerAbuzer Rafey2018-02-26 03:50:37 -0500
commit3ac4917235dfab96dbfff25203113eb26a21df9f (patch)
tree6a6a59fb8db640caf71a7f0d21f7681eb3f1b215
parent5186dd32372a9de80193d9b7b8a9dbf79875775c (diff)
downloadaur-3ac4917235dfab96dbfff25203113eb26a21df9f.tar.gz
Switch to XZ archive and add automatic checksums
-rw-r--r--.SRCINFO8
-rw-r--r--PKGBUILD11
2 files changed, 10 insertions, 9 deletions
diff --git a/.SRCINFO b/.SRCINFO
index cd2ae9dc01a..9949bfd712f 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = rust-nightly
pkgdesc = A safe, concurrent, practical language
pkgver = 1.26.0_2018.02.25
- pkgrel = 1
+ pkgrel = 2
url = http://www.rust-lang.org/
arch = i686
arch = x86_64
@@ -19,10 +19,10 @@ pkgbase = rust-nightly
options = !strip
options = !emptydirs
options = !makeflags
- source = https://static.rust-lang.org/dist/rustc-nightly-src.tar.gz
- source = https://static.rust-lang.org/dist/rustc-nightly-src.tar.gz.asc
+ source = https://static.rust-lang.org/dist/rustc-nightly-src.tar.xz
+ source = https://static.rust-lang.org/dist/rustc-nightly-src.tar.xz.asc
validpgpkeys = 108F66205EAEB0AAA8DD5E1C85AB96E6FA1BE5FE
- sha256sums = SKIP
+ sha256sums = 8ef7d94861f5c66f883816c18f70f97ef60ad540f338e5cd6a9f5391bd140d9a
sha256sums = SKIP
pkgname = rust-nightly
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"