community/rust to 1.15.1-1

This commit is contained in:
Kevin Mihelich 2017-03-04 18:45:08 +00:00
parent 8c5f4e7999
commit e1fa27c0c4

View file

@ -10,7 +10,7 @@ buildarch=28
pkgname=('rust' 'rust-docs')
epoch=1
pkgver=1.14.0
pkgver=1.15.1
pkgrel=1
arch=('x86_64' 'i686')
pkgdesc='Systems programming language focused on safety, speed and concurrency'
@ -19,14 +19,14 @@ groups=('rust')
license=('MIT' 'Apache')
makedepends=('libffi' 'perl' 'python2' 'curl' 'llvm' 'cmake' 'ninja' 'jemalloc' 'rust')
source=("https://static.rust-lang.org/dist/rustc-$pkgver-src.tar.gz"{,.asc})
sha256sums=('c790edd2e915bd01bea46122af2942108479a2fda9a6f76d1094add520ac3b6b'
sha256sums=('2e7daad418a830b45b977cd7ecf181b65f30f73df63ff36e124ea5fe5d1af327'
'SKIP')
options=('staticlibs' '!strip' '!emptydirs')
validpgpkeys=('108F66205EAEB0AAA8DD5E1C85AB96E6FA1BE5FE') # Rust Language (Tag and Release Signing Key) <rust-key@rust-lang.org>
#gpg --keyserver hkp://keys.gnupg.net --recv-keys 108F66205EAEB0AAA8DD5E1C85AB96E6FA1BE5FE
build() {
cd "rustc-$pkgver"
cd "rustc-$pkgver-src"
./configure \
--prefix=/usr \
@ -35,6 +35,7 @@ build() {
--llvm-root=/usr \
--disable-codegen-tests \
--jemalloc-root=/usr/lib \
--disable-rustbuild \
--enable-local-rust \
--local-rust-root=/usr
@ -47,7 +48,7 @@ build() {
package_rust() {
depends=('gcc-libs' 'llvm-libs')
cd "rustc-$pkgver"
cd "rustc-$pkgver-src"
make DESTDIR="$pkgdir" install
@ -69,7 +70,7 @@ package_rust-docs() {
mv "$srcdir"/doc/* "$pkgdir"/usr/share/doc/rust/
msg2 "Packaging license files for the documentation"
for license in APACHE MIT; do install -Dm644 "rustc-$pkgver/LICENSE-$license" \
for license in APACHE MIT; do install -Dm644 "rustc-$pkgver-src/LICENSE-$license" \
"$pkgdir/usr/share/licenses/$pkgname/LICENSE-$license"; done
}