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

Johannes Löthberg demize at archlinux.org
Sun Feb 17 13:08:18 UTC 2019


    Date: Sunday, February 17, 2019 @ 13:08:16
  Author: demize
Revision: 346424

archrelease: copy trunk to multilib-x86_64

Added:
  lib32-rust/repos/multilib-x86_64/
  lib32-rust/repos/multilib-x86_64/PKGBUILD
    (from rev 346423, lib32-rust/trunk/PKGBUILD)
  lib32-rust/repos/multilib-x86_64/config.toml
    (from rev 346423, lib32-rust/trunk/config.toml)

-------------+
 PKGBUILD    |   49 +++++++++++++++++++++++++++++++++++++++++++++++++
 config.toml |   29 +++++++++++++++++++++++++++++
 2 files changed, 78 insertions(+)

Copied: lib32-rust/repos/multilib-x86_64/PKGBUILD (from rev 346423, lib32-rust/trunk/PKGBUILD)
===================================================================
--- multilib-x86_64/PKGBUILD	                        (rev 0)
+++ multilib-x86_64/PKGBUILD	2019-02-17 13:08:16 UTC (rev 346424)
@@ -0,0 +1,49 @@
+# Maintainer: Johannes Löthberg <johannes at kyriasis.com>
+
+pkgname=lib32-rust
+pkgver=1.32.0
+pkgrel=2
+
+pkgdesc='32-bit libraries for rust'
+url='https://www.rust-lang.org/'
+arch=('x86_64')
+license=('MIT' 'Apache')
+
+makedepends=('llvm' 'libffi' 'perl' 'python2' 'curl' 'cmake')
+depends=('lib32-gcc-libs' "rust=1:$pkgver-1")
+
+source=("https://static.rust-lang.org/dist/rustc-$pkgver-src.tar.gz"{,.asc}
+        config.toml)
+
+sha256sums=('4c594c7712a0e7e8eae6526c464bf6ea1d82f77b4f61717c3fc28fb27ba2224a'
+            'SKIP'
+            '36c22ecdacbfeca9ab955726b4a701f687f8ed358a1b8ab2d7cc988408db44cb')
+validpgpkeys=('108F66205EAEB0AAA8DD5E1C85AB96E6FA1BE5FE') # Rust Language (Tag and Release Signing Key) <rust-key at rust-lang.org>
+
+prepare() {
+  cd "rustc-$pkgver-src"
+
+  cp "$srcdir"/config.toml config.toml
+}
+
+build() {
+  cd "rustc-$pkgver-src"
+
+  msg2 "Run build under x.py"
+  python2 ./x.py build
+}
+
+package() {
+  cd "rustc-$pkgver-src"
+
+  target="$pkgdir"/"$(rustc --print sysroot)"/lib/rustlib
+  install -d "$target"
+  cp -r \
+    build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/i686-unknown-linux-gnu \
+    "$target"
+
+  for license in APACHE MIT; do install -Dm644 "LICENSE-$license" \
+    "$pkgdir/usr/share/licenses/$pkgname/LICENSE-$license"; done
+}
+
+# vim:set ts=2 sw=2 et:

Copied: lib32-rust/repos/multilib-x86_64/config.toml (from rev 346423, lib32-rust/trunk/config.toml)
===================================================================
--- multilib-x86_64/config.toml	                        (rev 0)
+++ multilib-x86_64/config.toml	2019-02-17 13:08:16 UTC (rev 346424)
@@ -0,0 +1,29 @@
+[llvm]
+link-shared = true
+
+[build]
+target = ["i686-unknown-linux-gnu"] # defaults to just the build triple
+cargo = "/usr/bin/cargo"
+rustc = "/usr/bin/rustc"
+python = "python2.7"
+extended = true
+sanitizers = false
+local-rebuild = true
+
+[install]
+prefix = "/usr"
+
+[rust]
+# 0 or the new default of 16 is faster, but can result in worse performance
+# https://github.com/rust-lang/rust/issues/47745
+codegen-units = 1
+
+debuginfo = true
+debuginfo-lines = true
+
+channel = "stable"
+
+rpath = false
+
+[target.x86_64-unknown-linux-gnu]
+llvm-config = "/usr/bin/llvm-config"



More information about the arch-commits mailing list