Date: Friday, April 12, 2019 @ 21:55:17 Author: demize Revision: 451339
archrelease: copy trunk to multilib-testing-x86_64 Added: lib32-rust/repos/multilib-testing-x86_64/ lib32-rust/repos/multilib-testing-x86_64/PKGBUILD (from rev 451338, lib32-rust/trunk/PKGBUILD) lib32-rust/repos/multilib-testing-x86_64/config.toml (from rev 451338, lib32-rust/trunk/config.toml) -------------+ PKGBUILD | 49 +++++++++++++++++++++++++++++++++++++++++++++++++ config.toml | 29 +++++++++++++++++++++++++++++ 2 files changed, 78 insertions(+) Copied: lib32-rust/repos/multilib-testing-x86_64/PKGBUILD (from rev 451338, lib32-rust/trunk/PKGBUILD) =================================================================== --- multilib-testing-x86_64/PKGBUILD (rev 0) +++ multilib-testing-x86_64/PKGBUILD 2019-04-12 21:55:17 UTC (rev 451339) @@ -0,0 +1,49 @@ +# Maintainer: Johannes Löthberg <johan...@kyriasis.com> + +pkgname=lib32-rust +pkgver=1.34.0 +pkgrel=1 + +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=('7ac85acffd79dd3a7c44305d9eaabd1f1e7116e2e6e11e770e4bf5f92c0f1f59' + 'SKIP' + '36c22ecdacbfeca9ab955726b4a701f687f8ed358a1b8ab2d7cc988408db44cb') +validpgpkeys=('108F66205EAEB0AAA8DD5E1C85AB96E6FA1BE5FE') # Rust Language (Tag and Release Signing Key) <rust-...@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-testing-x86_64/config.toml (from rev 451338, lib32-rust/trunk/config.toml) =================================================================== --- multilib-testing-x86_64/config.toml (rev 0) +++ multilib-testing-x86_64/config.toml 2019-04-12 21:55:17 UTC (rev 451339) @@ -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"