# Maintainer: Pekka Ristola # Contributor: rpkak pkgname=libblake3 pkgver=1.8.4 pkgrel=1 pkgdesc="the C implementation of the BLAKE3 cryptographic hash function" arch=(x86_64) url="https://github.com/BLAKE3-team/BLAKE3" license=('CC0-1.0 OR Apache-2.0 OR Apache-2.0 WITH LLVM-exception') depends=( glibc ) makedepends=( cmake ) source=("$pkgname-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz") sha256sums=('b5ee5f5c5e025eb2733ae3af8d4c0e53bb66dff35095decfd377f1083e8ac9be') build() { cmake -B build -S "BLAKE3-$pkgver/c" \ -DCMAKE_BUILD_TYPE=None \ -DCMAKE_INSTALL_PREFIX=/usr \ -DBUILD_SHARED_LIBS=ON \ -Wno-dev cmake --build build } package() { DESTDIR="$pkgdir" cmake --install build install -Dm644 -t "$pkgdir/usr/share/licenses/$pkgname" "BLAKE3-$pkgver/LICENSE_A2LLVM" }