[arch-commits] Commit in hyperfine/repos (community-x86_64 community-x86_64/PKGBUILD)
Sven-Hendrik Haase
svenstaro at archlinux.org
Wed Jul 31 20:45:24 UTC 2019
Date: Wednesday, July 31, 2019 @ 20:45:24
Author: svenstaro
Revision: 495877
archrelease: copy trunk to community-x86_64
Added:
hyperfine/repos/community-x86_64/
hyperfine/repos/community-x86_64/PKGBUILD
(from rev 495876, hyperfine/trunk/PKGBUILD)
----------+
PKGBUILD | 25 +++++++++++++++++++++++++
1 file changed, 25 insertions(+)
Copied: hyperfine/repos/community-x86_64/PKGBUILD (from rev 495876, hyperfine/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD (rev 0)
+++ community-x86_64/PKGBUILD 2019-07-31 20:45:24 UTC (rev 495877)
@@ -0,0 +1,25 @@
+# Maintainer: Sven-Hendrik Haase <svenstaro at gmail.com>
+# Contributor: cauebs <cauebs at pm.me>
+pkgname="hyperfine"
+pkgver=1.6.0
+pkgrel=1
+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")
+sha256sums=('0cb251453147421c0c807587123e733b32346b9756c8594018c637ec374a63f4')
+
+build() {
+ cd "$srcdir/$pkgname-$pkgver"
+ cargo build --release --locked
+}
+package() {
+ cd "$srcdir/$pkgname-$pkgver"
+ # Apache doesn't need to be installed, but because of the dual license
+ # it makes more sense to not exclude it.
+ install -Dm 644 "LICENSE-APACHE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE-APACHE"
+ install -Dm 644 "LICENSE-MIT" "$pkgdir/usr/share/licenses/$pkgname/LICENSE-MIT"
+ install -Dm 755 "target/release/$pkgname" "$pkgdir/usr/bin/$pkgname"
+}
More information about the arch-commits
mailing list