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

Johannes Löthberg demize at archlinux.org
Tue Jun 20 22:35:40 UTC 2017


    Date: Tuesday, June 20, 2017 @ 22:35:40
  Author: demize
Revision: 239132

archrelease: copy trunk to community-testing-x86_64, community-testing-i686

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

-----------------------------------+
 community-testing-i686/PKGBUILD   |   75 ++++++++++++++++++++++++++++++++++++
 community-testing-x86_64/PKGBUILD |   75 ++++++++++++++++++++++++++++++++++++
 2 files changed, 150 insertions(+)

Copied: rust/repos/community-testing-i686/PKGBUILD (from rev 239131, rust/trunk/PKGBUILD)
===================================================================
--- community-testing-i686/PKGBUILD	                        (rev 0)
+++ community-testing-i686/PKGBUILD	2017-06-20 22:35:40 UTC (rev 239132)
@@ -0,0 +1,75 @@
+# $Id$
+# Maintainer: Johannes Löthberg <johannes at kyriasis.com>
+# Contributor: 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.18.0
+pkgrel=1
+
+pkgdesc='Systems programming language focused on safety, speed and concurrency'
+url='https://www.rust-lang.org/'
+arch=('x86_64' 'i686')
+license=('MIT' 'Apache')
+
+makedepends=('rust' 'cargo' 'libffi' 'perl' 'python2' 'curl' 'llvm' 'jemalloc')
+
+options=('!emptydirs')
+
+source=("https://static.rust-lang.org/dist/rustc-$pkgver-src.tar.gz"{,.asc})
+
+sha256sums=('d2dc36e99b9e2269488b2bcddde43c234e6bde03edf70cba82a027ff49c36111'
+            'SKIP')
+validpgpkeys=('108F66205EAEB0AAA8DD5E1C85AB96E6FA1BE5FE') # Rust Language (Tag and Release Signing Key) <rust-key at rust-lang.org>
+
+build() {
+  cd "rustc-$pkgver-src"
+
+  ./configure \
+    --prefix=/usr \
+    --release-channel=stable \
+    --llvm-root=/usr \
+    --enable-llvm-link-shared \
+    --disable-codegen-tests \
+    --jemalloc-root=/usr/lib \
+    --enable-local-rust
+
+  export RUSTFLAGS="$RUSTFLAGS -C link-args=-lffi"
+
+  msg2 "Run build under x.py"
+  python2 ./x.py build
+}
+
+package_rust() {
+  depends=('gcc-libs' 'llvm-libs')
+  optdepends=('cargo')
+
+  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:

Copied: rust/repos/community-testing-x86_64/PKGBUILD (from rev 239131, rust/trunk/PKGBUILD)
===================================================================
--- community-testing-x86_64/PKGBUILD	                        (rev 0)
+++ community-testing-x86_64/PKGBUILD	2017-06-20 22:35:40 UTC (rev 239132)
@@ -0,0 +1,75 @@
+# $Id$
+# Maintainer: Johannes Löthberg <johannes at kyriasis.com>
+# Contributor: 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.18.0
+pkgrel=1
+
+pkgdesc='Systems programming language focused on safety, speed and concurrency'
+url='https://www.rust-lang.org/'
+arch=('x86_64' 'i686')
+license=('MIT' 'Apache')
+
+makedepends=('rust' 'cargo' 'libffi' 'perl' 'python2' 'curl' 'llvm' 'jemalloc')
+
+options=('!emptydirs')
+
+source=("https://static.rust-lang.org/dist/rustc-$pkgver-src.tar.gz"{,.asc})
+
+sha256sums=('d2dc36e99b9e2269488b2bcddde43c234e6bde03edf70cba82a027ff49c36111'
+            'SKIP')
+validpgpkeys=('108F66205EAEB0AAA8DD5E1C85AB96E6FA1BE5FE') # Rust Language (Tag and Release Signing Key) <rust-key at rust-lang.org>
+
+build() {
+  cd "rustc-$pkgver-src"
+
+  ./configure \
+    --prefix=/usr \
+    --release-channel=stable \
+    --llvm-root=/usr \
+    --enable-llvm-link-shared \
+    --disable-codegen-tests \
+    --jemalloc-root=/usr/lib \
+    --enable-local-rust
+
+  export RUSTFLAGS="$RUSTFLAGS -C link-args=-lffi"
+
+  msg2 "Run build under x.py"
+  python2 ./x.py build
+}
+
+package_rust() {
+  depends=('gcc-libs' 'llvm-libs')
+  optdepends=('cargo')
+
+  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