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

Daniel M. Capella polyzen at gemini.archlinux.org
Mon Jul 26 18:52:34 UTC 2021


    Date: Monday, July 26, 2021 @ 18:52:33
  Author: polyzen
Revision: 985735

Add b3sum to repos

Added:
  b3sum/
  b3sum/repos/
  b3sum/trunk/
  b3sum/trunk/PKGBUILD

----------+
 PKGBUILD |   35 +++++++++++++++++++++++++++++++++++
 1 file changed, 35 insertions(+)

Added: b3sum/trunk/PKGBUILD
===================================================================
--- b3sum/trunk/PKGBUILD	                        (rev 0)
+++ b3sum/trunk/PKGBUILD	2021-07-26 18:52:33 UTC (rev 985735)
@@ -0,0 +1,35 @@
+# Maintainer: Daniel M. Capella <polyzen at archlinux.org>
+
+pkgname=b3sum
+pkgver=1.0.0
+pkgrel=2
+pkgdesc='Command line implementation of the BLAKE3 hash function'
+arch=('x86_64')
+url=https://github.com/BLAKE3-team/BLAKE3
+license=('Apache')
+depends=('gcc-libs')
+makedepends=('rust')
+source=("$pkgname-$pkgver.tar.gz::https://crates.io/api/v1/crates/$pkgname/$pkgver/download")
+b2sums=('d5c2ed570c921dd5f1b43165e9e8e356e9ded1bdfe365f7663fa31964093ba3bb2fb45f9c6c03b5651fceb2634b805200ef498e71143d4cbda87f14bcfa606b2')
+
+prepare() {
+  cd $pkgname-$pkgver
+  cargo fetch --locked
+}
+
+build() {
+  cd $pkgname-$pkgver
+  cargo build --release --locked --offline
+}
+
+check() {
+  cd $pkgname-$pkgver
+  cargo test --release --locked --offline
+}
+
+package() {
+  cd $pkgname-$pkgver
+  install -Dt "$pkgdir"/usr/bin target/release/$pkgname
+}
+
+# vim:set ts=2 sw=2 et:



More information about the arch-commits mailing list