summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ffd08eb4db144f43e22494e1fd966d22164361a0 (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
# Maintainer: rpkak <rpkak@users.noreply.github.com>
pkgname='libblake3'
pkgver=1.5.0
pkgrel=1
epoch=
pkgdesc="the C implementations of the BLAKE3 cryptographic hash function"
arch=('x86_64')
url="https://blake3.io/"
license=('Apache')
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=('f506140bc3af41d3432a4ce18b3b83b08eaa240e94ef161eb72b2e57cdc94c69')
validpgpkeys=()

build() {
    echo "BLAKE3-$pkgver/c"
    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 -Dm644 "BLAKE3-$pkgver/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}