[arch-commits] Commit in b3sum/repos (community-x86_64 community-x86_64/PKGBUILD)
Daniel M. Capella
polyzen at gemini.archlinux.org
Mon Jul 26 18:52:56 UTC 2021
Date: Monday, July 26, 2021 @ 18:52:56
Author: polyzen
Revision: 985737
archrelease: copy trunk to community-x86_64
Added:
b3sum/repos/community-x86_64/
b3sum/repos/community-x86_64/PKGBUILD
(from rev 985736, b3sum/trunk/PKGBUILD)
----------+
PKGBUILD | 35 +++++++++++++++++++++++++++++++++++
1 file changed, 35 insertions(+)
Copied: b3sum/repos/community-x86_64/PKGBUILD (from rev 985736, b3sum/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD (rev 0)
+++ community-x86_64/PKGBUILD 2021-07-26 18:52:56 UTC (rev 985737)
@@ -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