From 6f6b224f4dd9c7304732371eed137bdc9c942ce3 Mon Sep 17 00:00:00 2001 From: Kevin Mihelich Date: Thu, 4 Jul 2024 05:56:01 +0000 Subject: [PATCH] extra/libb2 to 0.98.1-3 --- extra/libb2/.SRCINFO | 14 ++++++++++++++ extra/libb2/.nvchecker.toml | 5 +++++ extra/libb2/PKGBUILD | 30 +++++++++++++++++++++--------- 3 files changed, 40 insertions(+), 9 deletions(-) create mode 100644 extra/libb2/.SRCINFO create mode 100644 extra/libb2/.nvchecker.toml diff --git a/extra/libb2/.SRCINFO b/extra/libb2/.SRCINFO new file mode 100644 index 000000000..166ac549b --- /dev/null +++ b/extra/libb2/.SRCINFO @@ -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 diff --git a/extra/libb2/.nvchecker.toml b/extra/libb2/.nvchecker.toml new file mode 100644 index 000000000..8ca8f2e8c --- /dev/null +++ b/extra/libb2/.nvchecker.toml @@ -0,0 +1,5 @@ +[libb2] +source = 'github' +github = 'BLAKE2/libb2' +use_max_tag = true +prefix = 'v' diff --git a/extra/libb2/PKGBUILD b/extra/libb2/PKGBUILD index 8eb031a97..f4c92bb43 100644 --- a/extra/libb2/PKGBUILD +++ b/extra/libb2/PKGBUILD @@ -7,32 +7,44 @@ pkgname=libb2 pkgver=0.98.1 -pkgrel=2 +pkgrel=3 arch=(x86_64) pkgdesc='C library providing BLAKE2b, BLAKE2s, BLAKE2bp, BLAKE2sp hash functions' url='https://blake2.net/' -license=(custom:CC0) -depends=(gcc-libs) -source=("https://github.com/BLAKE2/libb2/releases/download/v$pkgver/$pkgname-$pkgver.tar.gz") -sha256sums=('53626fddce753c454a3fea581cbbc7fe9bbcf0bc70416d48fdbbf5d87ef6c72e') +license=(CC0-1.0) +depends=(gcc-libs + glibc) +makedepends=(git) +source=(git+https://github.com/BLAKE2/libb2#tag=v$pkgver) +sha256sums=('eb6b596bc30918427d1e792914f454c1d3e61fef3d4499f6605ede78f835cc1b') # libb2's build system discards the $CFLAGS variable. # We can get around this by putting those flags in $CC. export CC="${CC-cc} $CFLAGS" +prepare() { + cd $pkgname + autoreconf -vi +} + build() { - cd "$pkgname-$pkgver" - ./configure --prefix=/usr --disable-static --enable-shared --disable-native --disable-fat + cd $pkgname + ./configure \ + --prefix=/usr \ + --disable-static \ + --enable-shared \ + --disable-native \ + --disable-fat make } check() { - cd $pkgname-$pkgver + cd $pkgname make check } package() { - cd $pkgname-$pkgver + cd $pkgname make DESTDIR="$pkgdir" install install -Dm644 COPYING -t "$pkgdir"/usr/share/licenses/$pkgname }