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

Caleb Maclennan alerque at gemini.archlinux.org
Thu Aug 5 21:14:21 UTC 2021


    Date: Thursday, August 5, 2021 @ 21:14:21
  Author: alerque
Revision: 993901

Avoid installed binary being built with bench profile; prefetch dependencies

Modified:
  mdbook/trunk/PKGBUILD

----------+
 PKGBUILD |   10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2021-08-05 20:58:04 UTC (rev 993900)
+++ PKGBUILD	2021-08-05 21:14:21 UTC (rev 993901)
@@ -1,17 +1,18 @@
 # Maintainer: Jelle van der Waa <jelle at archlinux.org>
 # Maintainer: Orhun Parmaksız <orhun at archlinux.org>
+# Maintainer: Caleb Maclennan <caleb at alerque.com>
 # Contributor: Fabio 'Lolix' Loli <fabio.loli at disroot.org> -> https://github.com/FabioLolix
 # Contributor: Moritz Schönherr <moritz.schoenherr at gmail.com>
 
 pkgname=mdbook
 pkgver=0.4.12
-pkgrel=1
+pkgrel=2
 pkgdesc="Create book from markdown files, like Gitbook but implemented in Rust"
 url="https://github.com/rust-lang/mdBook"
 arch=('x86_64')
 license=('MPL2')
 depends=('gcc-libs')
-makedepends=('rust')
+makedepends=('cargo')
 source=("${pkgname}-${pkgver}.tar.gz::https://github.com/rust-lang/mdBook/archive/v${pkgver}.tar.gz")
 sha256sums=('d28b958c71a7934fde1c22204c3dc41ffc74df98c90afc1bf3ddafd131d4af77')
 # https://github.com/rust-lang/mdBook/blob/master/CHANGELOG.md
@@ -19,11 +20,12 @@
 prepare() {
   cd "mdBook-${pkgver}"
   mkdir completions/
+  cargo fetch --locked --target "$CARCH-unknown-linux-gnu"
 }
 
 build() {
   cd "mdBook-${pkgver}"
-  cargo build --release --locked
+  cargo build --frozen --release
   cargo run -- completions bash > "completions/$pkgname.bash"
   cargo run -- completions fish > "completions/$pkgname.fish"
   cargo run -- completions zsh > "completions/_$pkgname"
@@ -31,7 +33,7 @@
 
 check() {
   cd "mdBook-${pkgver}"
-  cargo test --release --locked
+  cargo test --frozen
 }
 
 package() {



More information about the arch-commits mailing list