diff options
author | Iru Cai | 2018-11-26 12:09:45 +0800 |
---|---|---|
committer | Iru Cai | 2018-11-26 12:12:08 +0800 |
commit | c2d2e57c051e166c3a000385db1754e9649328c3 (patch) | |
tree | 691a0ad866f3867ebd23ca24ff818f5761f1eb30 | |
parent | e96cf9401d3615c859b08b89ed148edf8c2aa5b0 (diff) | |
download | aur-c2d2e57c051e166c3a000385db1754e9649328c3.tar.gz |
build with GCC 7, install to /usr/
-rw-r--r-- | .SRCINFO | 5 | ||||
-rw-r--r-- | PKGBUILD | 15 |
2 files changed, 14 insertions, 6 deletions
@@ -1,10 +1,11 @@ pkgbase = rust-mrustc - pkgdesc = Rust built with mrustc (does not work yet) + pkgdesc = Rust built with mrustc pkgver = 1.19.0 - pkgrel = 2 + pkgrel = 3 url = https://github.com/thepowersgang/mrustc arch = x86_64 license = MIT + makedepends = gcc7 depends = mrustc-git provides = rust=1.19.0 source = https://static.rust-lang.org/dist/rustc-1.19.0-src.tar.gz @@ -2,13 +2,13 @@ pkgname=rust-mrustc pkgver=1.19.0 -pkgrel=2 -pkgdesc='Rust built with mrustc (does not work yet)' +pkgrel=3 +pkgdesc='Rust built with mrustc' arch=('x86_64') url='https://github.com/thepowersgang/mrustc' license=('MIT') depends=('mrustc-git') -makedepends=() +makedepends=('gcc7') provides=("rust=$pkgver") conflicts=() source=("https://static.rust-lang.org/dist/rustc-$pkgver-src.tar.gz" 'openssl.patch') @@ -16,6 +16,12 @@ sha256sums=('15231f5053fb72ad82be91f5abfd6aa60cb7898c5089e4f1ac5910a731090c51' '44d51a440ec2a0a052a64088fcbc95ccf6af62ea73feb76cc7269e2d0ff8f206') build() { + export CC=gcc-7 + export CXX=g++-7 + install -d "$srcdir/bin" + ln -s /usr/bin/x86_64-pc-linux-gnu-gcc-7 "$srcdir/bin/x86_64-pc-linux-gnu-gcc" + export PATH="$srcdir/bin:$PATH" + WORK="$srcdir/rust-mrustc" mkdir -p "$WORK" mv "$srcdir/rustc-$pkgver-src" "$WORK" @@ -39,5 +45,6 @@ build() { } package() { - cp -r "$srcdir/rust-mrustc/run_rustc/prefix/"{bin,lib} "$pkgdir/" + install -d "$pkgdir/usr" + cp -r "$srcdir/rust-mrustc/run_rustc/prefix/"{bin,lib} "$pkgdir/usr/" } |