blob: 50d34a183f90687e8023d74704e05d97e08e488e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
# Maintainer: rpkak <rpkak@users.noreply.github.com>
pkgname='libblake3'
pkgver=1.5.4
pkgrel=1
epoch=
pkgdesc="the C implementations of the BLAKE3 cryptographic hash function"
arch=('x86_64')
url="https://blake3.io/"
license=('CC0-1.0 OR Apache-2.0 OR Apache-2.0 WITH LLVM-exception')
groups=()
depends=(glibc)
makedepends=(cmake)
checkdepends=()
optdepends=()
provides=(libblake3.so)
conflicts=()
replaces=()
backup=()
options=()
install=
changelog=
source=("$pkgname-$pkgver.tar.gz::https://github.com/BLAKE3-team/BLAKE3/archive/refs/tags/$pkgver.tar.gz")
sha256sums=('ddd24f26a31d23373e63d9be2e723263ac46c8b6d49902ab08024b573fd2a416')
validpgpkeys=()
build() {
cmake -B "BLAKE3-$pkgver/c/build" -S "BLAKE3-$pkgver/c" -DBUILD_SHARED_LIBS=True -DCMAKE_BUILD_TYPE='Release' -DCMAKE_INSTALL_PREFIX='/usr' -Wno-dev
cmake --build "BLAKE3-$pkgver/c/build"
}
package() {
DESTDIR="$pkgdir" cmake --install "BLAKE3-$pkgver/c/build"
install -Dvm644 "BLAKE3-$pkgver/LICENSE_A2" "$pkgdir/usr/share/licenses/$pkgname/LICENSE_A2"
install -Dvm644 "BLAKE3-$pkgver/LICENSE_A2LLVM" "$pkgdir/usr/share/licenses/$pkgname/LICENSE_A2LLVM"
install -Dvm644 "BLAKE3-$pkgver/LICENSE_CC0" "$pkgdir/usr/share/licenses/$pkgname/LICENSE_CC0"
}
|