[arch-commits] Commit in rust/repos (2 files)

Johannes Löthberg demize at archlinux.org
Fri Mar 3 13:50:39 UTC 2017


    Date: Friday, March 3, 2017 @ 13:50:38
  Author: demize
Revision: 214651

archrelease: copy trunk to community-testing-x86_64

Added:
  rust/repos/community-testing-x86_64/
  rust/repos/community-testing-x86_64/PKGBUILD
    (from rev 214650, rust/trunk/PKGBUILD)

----------+
 PKGBUILD |   70 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 70 insertions(+)

Copied: rust/repos/community-testing-x86_64/PKGBUILD (from rev 214650, rust/trunk/PKGBUILD)
===================================================================
--- community-testing-x86_64/PKGBUILD	                        (rev 0)
+++ community-testing-x86_64/PKGBUILD	2017-03-03 13:50:38 UTC (rev 214651)
@@ -0,0 +1,70 @@
+# $Id$
+# Maintainer: Alexander F Rødseth <xyproto at archlinux.org>
+# Contributor: Daniel Micay <danielmicay at gmail.com>
+# Contributor: userwithuid <userwithuid at gmail.com>
+
+pkgname=('rust' 'rust-docs')
+epoch=1
+pkgver=1.15.1
+pkgrel=1
+arch=('x86_64' 'i686')
+pkgdesc='Systems programming language focused on safety, speed and concurrency'
+url='https://www.rust-lang.org/'
+groups=('rust')
+license=('MIT' 'Apache')
+makedepends=('libffi' 'perl' 'python2' 'curl' 'llvm' 'ninja' 'cmake' 'ninja' 'jemalloc')
+source=("https://static.rust-lang.org/dist/rustc-$pkgver-src.tar.gz"{,.asc})
+sha256sums=('2e7daad418a830b45b977cd7ecf181b65f30f73df63ff36e124ea5fe5d1af327'
+            'SKIP')
+options=('staticlibs' '!strip' '!emptydirs')
+validpgpkeys=('108F66205EAEB0AAA8DD5E1C85AB96E6FA1BE5FE') # Rust Language (Tag and Release Signing Key) <rust-key at rust-lang.org>
+#gpg --keyserver hkp://keys.gnupg.net --recv-keys 108F66205EAEB0AAA8DD5E1C85AB96E6FA1BE5FE
+
+build() {
+  cd "rustc-$pkgver-src"
+
+  ./configure \
+    --prefix=/usr \
+    --release-channel=stable \
+    --enable-ninja \
+    --llvm-root=/usr \
+    --disable-codegen-tests \
+    --jemalloc-root=/usr/lib \
+    --disable-rustbuild
+
+  export RUSTFLAGS="$RUSTFLAGS -C link-args=-lffi"
+  export CFLAGS="$CFLAGS -fPIC -w"
+
+  make
+}
+
+package_rust() {
+  depends=('gcc-libs' 'llvm-libs')
+
+  cd "rustc-$pkgver-src"
+
+  make DESTDIR="$pkgdir" install
+
+  for license in APACHE MIT; do install -Dm644 "LICENSE-$license" \
+    "$pkgdir/usr/share/licenses/$pkgname/LICENSE-$license"; done
+
+  cd "$pkgdir/usr/lib"
+
+  rm rustlib/{components,manifest-rustc,rust-installer-version}
+  ln -sf rustlib/$CARCH-unknown-linux-gnu/lib/*.so .
+
+  # move docs out of the way
+  mv "$pkgdir/usr/share/doc" "$srcdir/"
+}
+
+package_rust-docs() {
+  msg2 "Packaging documentation"
+  install -d "$pkgdir/usr/share/doc/"
+  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-src/LICENSE-$license" \
+    "$pkgdir/usr/share/licenses/$pkgname/LICENSE-$license"; done
+}
+
+# vim:set ts=2 sw=2 et:


More information about the arch-commits mailing list