From 80784b2d16a7e7048aacfd80daeca4343eab33c9 Mon Sep 17 00:00:00 2001 From: Danny Rawlins Date: Tue, 19 Oct 2021 14:41:07 +1100 Subject: [PATCH] libb2: initial import --- libb2/.footprint | 10 ++++++++++ libb2/.signature | 5 +++++ libb2/Pkgfile | 20 ++++++++++++++++++++ 3 files changed, 35 insertions(+) create mode 100644 libb2/.footprint create mode 100644 libb2/.signature create mode 100644 libb2/Pkgfile diff --git a/libb2/.footprint b/libb2/.footprint new file mode 100644 index 000000000..72cd6d1fe --- /dev/null +++ b/libb2/.footprint @@ -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 diff --git a/libb2/.signature b/libb2/.signature new file mode 100644 index 000000000..7a67e87a5 --- /dev/null +++ b/libb2/.signature @@ -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 diff --git a/libb2/Pkgfile b/libb2/Pkgfile new file mode 100644 index 000000000..50677938a --- /dev/null +++ b/libb2/Pkgfile @@ -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 +}