[arch-commits] Commit in cargo-msrv/trunk (PKGBUILD)

Orhun Parmaksiz orhun at gemini.archlinux.org
Wed Aug 31 14:04:22 UTC 2022


    Date: Wednesday, August 31, 2022 @ 14:04:22
  Author: orhun
Revision: 1289157

upgpkg: cargo-msrv 0.15.1-2: add rustup dependency (fixes FS#75736)

Modified:
  cargo-msrv/trunk/PKGBUILD

----------+
 PKGBUILD |   14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2022-08-31 13:45:34 UTC (rev 1289156)
+++ PKGBUILD	2022-08-31 14:04:22 UTC (rev 1289157)
@@ -2,12 +2,12 @@
 
 pkgname=cargo-msrv
 pkgver=0.15.1
-pkgrel=1
+pkgrel=2
 pkgdesc="Find the minimum supported Rust version (MSRV) for your project"
 arch=('x86_64')
 url="https://github.com/foresterre/cargo-msrv"
 license=('MIT' 'Apache')
-depends=('gcc-libs' 'openssl')
+depends=('gcc-libs' 'openssl' 'rustup')
 makedepends=('cargo')
 source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
 sha256sums=('58c54cc718cfe9653a0b506b9f85eb688583e0aa4a8b8df02738050b69460762')
@@ -15,6 +15,7 @@
 
 prepare() {
   cd "$pkgname-$pkgver"
+  export RUSTUP_TOOLCHAIN=stable
   cargo fetch --locked --target "$CARCH-unknown-linux-gnu"
 }
 
@@ -23,11 +24,10 @@
   cargo build --release --frozen
 }
 
-# tests are using rustup
-#check() {
-#  cd "$pkgname-$pkgver"
-#  cargo test --release --locked --all -- --test-threads=1
-#}
+check() {
+  cd "$pkgname-$pkgver"
+  cargo test --frozen --all -- --test-threads=1
+}
 
 package() {
   cd "$pkgname-$pkgver"



More information about the arch-commits mailing list