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

Caleb Maclennan alerque at gemini.archlinux.org
Sat Aug 7 10:26:44 UTC 2021


    Date: Saturday, August 7, 2021 @ 10:26:43
  Author: alerque
Revision: 994640

Avoid installing binary built with 'bench' profile; fetch before build

Modified:
  bottom/trunk/PKGBUILD

----------+
 PKGBUILD |   13 ++++++++++---
 1 file changed, 10 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2021-08-07 06:36:00 UTC (rev 994639)
+++ PKGBUILD	2021-08-07 10:26:43 UTC (rev 994640)
@@ -1,9 +1,10 @@
 # Maintainer: George Rawlinson <grawlinson at archlinux.org>
+# Maintainer: Caleb Maclennan <caleb at alerque.com>
 # Contributor: Clement Tsang (xoronth) <cjhtsang at uwaterloo.ca>
 
 pkgname=bottom
 pkgver=0.6.3
-pkgrel=2
+pkgrel=3
 pkgdesc="A graphical process/system monitor"
 arch=('x86_64')
 url="https://github.com/ClementTsang/bottom"
@@ -17,14 +18,20 @@
 source=("$pkgname-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz")
 b2sums=('2f71722f1b8c100a82d7e684cbc001d493bafaa94319fac564551e34085a9c68c3d34b77147dddcb904013d9c823b1abc21826f828c090117babb47bd2054f37')
 
+prepare() {
+  cd "$pkgname-$pkgver"
+  cargo  fetch --locked --target "$CARCH-unknown-linux-gnu"
+}
+
 build() {
   cd "$pkgname-$pkgver"
-  cargo build --release --locked --no-default-features
+  cargo build --frozen --release --no-default-features
 }
 
 check() {
   cd "$pkgname-$pkgver"
-  CARGO_HUSKY_DONT_INSTALL_HOOKS=true cargo test --release --locked --no-default-features
+  export CARGO_HUSKY_DONT_INSTALL_HOOKS=true
+  cargo test --frozen --no-default-features
 }
 
 package() {



More information about the arch-commits mailing list