libb2: initial import

This commit is contained in:
Danny Rawlins 2021-10-19 14:41:07 +11:00
parent 9a1c799538
commit 80784b2d16
3 changed files with 35 additions and 0 deletions

10
libb2/.footprint Normal file
View File

@ -0,0 +1,10 @@
drwxr-xr-x root/root usr/
drwxr-xr-x root/root usr/include/
-rw-r--r-- root/root usr/include/blake2.h
drwxr-xr-x root/root usr/lib/
-rwxr-xr-x root/root usr/lib/libb2.la
lrwxrwxrwx root/root usr/lib/libb2.so -> libb2.so.1.0.4
lrwxrwxrwx root/root usr/lib/libb2.so.1 -> libb2.so.1.0.4
-rwxr-xr-x root/root usr/lib/libb2.so.1.0.4
drwxr-xr-x root/root usr/lib/pkgconfig/
-rw-r--r-- root/root usr/lib/pkgconfig/libb2.pc

5
libb2/.signature Normal file
View File

@ -0,0 +1,5 @@
untrusted comment: verify with /etc/ports/opt.pub
RWSE3ohX2g5d/Z0vYf09LCdEes2898bXfj+veQRJf0dRfSqe0/iDzYcBITlpZsRvXi3SdB1XcgOrBwk6N4tnDLnC63fiJdhYiwU=
SHA256 (Pkgfile) = 22b58990e0f2ad573d9240555410168e94453b2964a7dc78059d80e2b0769cdc
SHA256 (.footprint) = 3e1e8c3925c0b99a4652461e967dd0958810a444332b970bfd8e0adf92d6449f
SHA256 (libb2-0.98.1.tar.gz) = 53626fddce753c454a3fea581cbbc7fe9bbcf0bc70416d48fdbbf5d87ef6c72e

20
libb2/Pkgfile Normal file
View File

@ -0,0 +1,20 @@
# Description: C library providing BLAKE2b, BLAKE2s, BLAKE2bp, BLAKE2sp hash functions
# URL: https://blake2.net/
# Maintainer: Tim Biermann, tbier at posteo dot de
name=libb2
version=0.98.1
release=1
source=(https://github.com/BLAKE2/libb2/releases/download/v$version/$name-$version.tar.gz)
build() {
cd $name-$version
export CC="${CC-cc} $CFLAGS"
./configure --prefix=/usr \
--disable-static \
--enable-shared \
--disable-native \
--enable-fat
make
make DESTDIR=$PKG install
}