Package Details: mrustc-git v0.9.15-1

Git Clone URL: https://aur.archlinux.org/mrustc-git.git (read-only, click to copy)
Package Base: mrustc-git
Description: Alternative rust compiler written in C++
Upstream URL: https://github.com/thepowersgang/mrustc
Licenses: MIT
Submitter: mytbk
Maintainer: mytbk
Last Packager: mytbk
Votes: 1
Popularity: 0.000136
First Submitted: 2018-03-24 01:51
Last Updated: 2019-11-08 07:26

Latest Comments

ryshglene commented on 2020-09-19 08:15

The minicargo patch is no longer required. Also, please add git to makedepends, otherwise it fails to build in a clean chroot.

Edit: tools/bin/minicargo has also been moved to bin/minicargo, it looks like.

diff --git a/PKGBUILD b/PKGBUILD
index e874452..dfd2289 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,20 +1,18 @@
 # Maintainer: vimacs <https://vimacs.lcpu.club>

 pkgname=mrustc-git
-pkgver=v0.9.15
+pkgver=v0.9.260
 pkgrel=1
 pkgdesc='Alternative rust compiler written in C++'
 arch=('x86_64')
 url='https://github.com/thepowersgang/mrustc'
 license=('MIT')
 depends=('clang') # mrustc will crash if built with GCC 9
-makedepends=()
+makedepends=('git')
 provides=()
 conflicts=()
-source=('git+https://github.com/thepowersgang/mrustc.git'
-   'minicargo-use-system-mrustc.patch')
-sha256sums=('SKIP'
-   'b2d0ed78257ff18aebdb556532140f43d041468f7da479bac153a9bb88870d5b')
+source=('git+https://github.com/thepowersgang/mrustc')
+sha256sums=('SKIP')

 pkgver() {
    cd "$srcdir/mrustc"
@@ -23,7 +21,6 @@ pkgver() {

 build() {
    cd "$srcdir/mrustc"
-   patch -p1 -i "$srcdir/minicargo-use-system-mrustc.patch"
    sed -i 's/x86_64-linux-gnu/x86_64-pc-linux-gnu/g' tools/common/target_detect.h src/trans/target.cpp
    make CXX=clang++
    make CXX=clang++ -C tools/minicargo
@@ -32,7 +29,7 @@ build() {
 package() {
    cd "$srcdir/mrustc"
    install -D bin/mrustc "$pkgdir/usr/bin/mrustc"
-   install -D tools/bin/minicargo "$pkgdir/usr/bin/minicargo"
+   install -D bin/minicargo "$pkgdir/usr/bin/minicargo"
    install -d "$pkgdir/usr/share/mrustc"
    cp -r script-overrides lib run_rustc "$pkgdir/usr/share/mrustc/"