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
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
}