[arch-commits] Commit in hyperfine/trunk (PKGBUILD)
Sven-Hendrik Haase
svenstaro at archlinux.org
Sat Mar 14 15:17:44 UTC 2020
Date: Saturday, March 14, 2020 @ 15:17:44
Author: svenstaro
Revision: 597003
upgpkg: hyperfine 1.9.0-2: Add cargo test and rename source package to be unique
Modified:
hyperfine/trunk/PKGBUILD
----------+
PKGBUILD | 12 +++++++++---
1 file changed, 9 insertions(+), 3 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2020-03-14 15:12:52 UTC (rev 597002)
+++ PKGBUILD 2020-03-14 15:17:44 UTC (rev 597003)
@@ -1,14 +1,14 @@
# Maintainer: Sven-Hendrik Haase <svenstaro at gmail.com>
# Contributor: cauebs <cauebs at pm.me>
-pkgname="hyperfine"
+pkgname=hyperfine
pkgver=1.9.0
-pkgrel=1
+pkgrel=2
pkgdesc="A command-line benchmarking tool"
url="https://github.com/sharkdp/hyperfine"
arch=("x86_64")
license=("APACHE" "MIT")
makedepends=(cargo)
-source=("https://github.com/sharkdp/$pkgname/archive/v$pkgver.tar.gz")
+source=("$pkgname-$pkgver.tar.gz::https://github.com/sharkdp/$pkgname/archive/v$pkgver.tar.gz")
sha256sums=('c2b1c6b6364b849acad43dc740c693f5b75a1a4649f24f43967a98c59ad9e9f7')
build() {
@@ -15,6 +15,12 @@
cd "$srcdir/$pkgname-$pkgver"
cargo build --release --locked
}
+
+check() {
+ cd "$srcdir/$pkgname-$pkgver"
+ cargo test --release --locked
+}
+
package() {
cd "$srcdir/$pkgname-$pkgver"
# Apache doesn't need to be installed, but because of the dual license
More information about the arch-commits
mailing list