extra/libb2 to 0.98.1-3

This commit is contained in:
Kevin Mihelich 2024-07-04 05:56:01 +00:00
parent eba74bf126
commit 6f6b224f4d
3 changed files with 40 additions and 9 deletions

14
extra/libb2/.SRCINFO Normal file
View file

@ -0,0 +1,14 @@
pkgbase = libb2
pkgdesc = C library providing BLAKE2b, BLAKE2s, BLAKE2bp, BLAKE2sp hash functions
pkgver = 0.98.1
pkgrel = 3
url = https://blake2.net/
arch = x86_64
license = CC0-1.0
makedepends = git
depends = gcc-libs
depends = glibc
source = git+https://github.com/BLAKE2/libb2#tag=v0.98.1
sha256sums = eb6b596bc30918427d1e792914f454c1d3e61fef3d4499f6605ede78f835cc1b
pkgname = libb2

View file

@ -0,0 +1,5 @@
[libb2]
source = 'github'
github = 'BLAKE2/libb2'
use_max_tag = true
prefix = 'v'

View file

@ -7,32 +7,44 @@
pkgname=libb2 pkgname=libb2
pkgver=0.98.1 pkgver=0.98.1
pkgrel=2 pkgrel=3
arch=(x86_64) arch=(x86_64)
pkgdesc='C library providing BLAKE2b, BLAKE2s, BLAKE2bp, BLAKE2sp hash functions' pkgdesc='C library providing BLAKE2b, BLAKE2s, BLAKE2bp, BLAKE2sp hash functions'
url='https://blake2.net/' url='https://blake2.net/'
license=(custom:CC0) license=(CC0-1.0)
depends=(gcc-libs) depends=(gcc-libs
source=("https://github.com/BLAKE2/libb2/releases/download/v$pkgver/$pkgname-$pkgver.tar.gz") glibc)
sha256sums=('53626fddce753c454a3fea581cbbc7fe9bbcf0bc70416d48fdbbf5d87ef6c72e') makedepends=(git)
source=(git+https://github.com/BLAKE2/libb2#tag=v$pkgver)
sha256sums=('eb6b596bc30918427d1e792914f454c1d3e61fef3d4499f6605ede78f835cc1b')
# libb2's build system discards the $CFLAGS variable. # libb2's build system discards the $CFLAGS variable.
# We can get around this by putting those flags in $CC. # We can get around this by putting those flags in $CC.
export CC="${CC-cc} $CFLAGS" export CC="${CC-cc} $CFLAGS"
prepare() {
cd $pkgname
autoreconf -vi
}
build() { build() {
cd "$pkgname-$pkgver" cd $pkgname
./configure --prefix=/usr --disable-static --enable-shared --disable-native --disable-fat ./configure \
--prefix=/usr \
--disable-static \
--enable-shared \
--disable-native \
--disable-fat
make make
} }
check() { check() {
cd $pkgname-$pkgver cd $pkgname
make check make check
} }
package() { package() {
cd $pkgname-$pkgver cd $pkgname
make DESTDIR="$pkgdir" install make DESTDIR="$pkgdir" install
install -Dm644 COPYING -t "$pkgdir"/usr/share/licenses/$pkgname install -Dm644 COPYING -t "$pkgdir"/usr/share/licenses/$pkgname
} }