PKGBUILDs/extra/libb2/PKGBUILD

51 lines
1.1 KiB
Bash
Raw Normal View History

2020-10-07 18:33:24 +00:00
# Maintainer: Antonio Rojas <arojas@archlinux.org>
# Contributor: Lex Black <autumn-wind@web.de>
# Contributor: Jesin <Jesin00@gmail.com>
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
# - configure with --disable-fat (SSE)
pkgname=libb2
pkgver=0.98.1
2024-07-04 05:56:01 +00:00
pkgrel=3
2020-10-07 18:33:24 +00:00
arch=(x86_64)
pkgdesc='C library providing BLAKE2b, BLAKE2s, BLAKE2bp, BLAKE2sp hash functions'
url='https://blake2.net/'
2024-07-04 05:56:01 +00:00
license=(CC0-1.0)
depends=(gcc-libs
glibc)
makedepends=(git)
source=(git+https://github.com/BLAKE2/libb2#tag=v$pkgver)
sha256sums=('eb6b596bc30918427d1e792914f454c1d3e61fef3d4499f6605ede78f835cc1b')
2020-10-07 18:33:24 +00:00
# libb2's build system discards the $CFLAGS variable.
# We can get around this by putting those flags in $CC.
export CC="${CC-cc} $CFLAGS"
2024-07-04 05:56:01 +00:00
prepare() {
cd $pkgname
autoreconf -vi
}
2020-10-07 18:33:24 +00:00
build() {
2024-07-04 05:56:01 +00:00
cd $pkgname
./configure \
--prefix=/usr \
--disable-static \
--enable-shared \
--disable-native \
--disable-fat
2020-10-07 18:33:24 +00:00
make
}
check() {
2024-07-04 05:56:01 +00:00
cd $pkgname
2020-10-07 18:33:24 +00:00
make check
}
package() {
2024-07-04 05:56:01 +00:00
cd $pkgname
2020-10-07 18:33:24 +00:00
make DESTDIR="$pkgdir" install
install -Dm644 COPYING -t "$pkgdir"/usr/share/licenses/$pkgname
}