diff options
author | Markus Richter | 2020-04-13 15:00:33 +0200 |
---|---|---|
committer | Markus Richter | 2020-04-13 15:00:33 +0200 |
commit | 3372335a95034d3ba647fbd28252b4f67422708a (patch) | |
tree | 05da14980d1a5db59fbfee0d8e74b014eb8a92ab | |
parent | 5c2e01100cd763b73acffcc0f005012caf35d8a8 (diff) | |
download | aur-3372335a95034d3ba647fbd28252b4f67422708a.tar.gz |
Fix rustup toolchain issues
+ Set rustup profile to ignore unneccessary toolchain components when using rustup
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 9 |
2 files changed, 9 insertions, 2 deletions
@@ -1,6 +1,6 @@ pkgbase = bitwarden_rs-git pkgdesc = An unofficial lightweight implementation of the bitwarden-server using rust and sqlite. Does NOT include the web-interface. - pkgver = 1.14.r0.g70f3ab8 + pkgver = 1.14.2.r0.ge3feba2 pkgrel = 1 url = https://github.com/dani-garcia/bitwarden_rs install = bitwarden_rs.install @@ -3,7 +3,7 @@ pkgname=bitwarden_rs-git _pkgbase=bitwarden_rs -pkgver=1.14.r0.g70f3ab8 +pkgver=1.14.2.r0.ge3feba2 pkgrel=1 pkgdesc="An unofficial lightweight implementation of the bitwarden-server using rust and sqlite. Does NOT include the web-interface." arch=('i686' 'x86_64' 'armv7h' 'aarch64') @@ -39,10 +39,17 @@ pkgver() { } build() { + # rustup is not required, but if it exists, we have to set the profile. Otherwise, fail silently. + # This is necessary because some of the optional toolchain components (e.g. clippy) fail regularly on nightly and rustup/cargo will fail if it can't download those. + RUSTUP_PROFILE=`rustup show profile 2>/dev/null` + rustup set profile minimal 2>/dev/null && echo "Set rustup profile to 'minimal'. Will reset to '$RUSTUP_PROFILE' after a successful build." + #build bitwarden_rs cd "$srcdir/$_pkgbase" patch -N -p1 -i "$srcdir/0001-Disable-Vault.patch" cargo build --release --locked --features sqlite + + rustup set profile $RUSTUP_PROFILE 2>/dev/null && echo "Set rustup profile back to '$RUSTUP_PROFILE'." } check() { |