# Maintainer: Mattias Andrée pkgname=libsha2 pkgver=1.1.2 pkgrel=1 pkgdesc="SHA-2-family hashing library" arch=(i686 x86_64) url="https://codeberg.org/maandree/libsha2" license=('custom:ISC') depends=() checkdepends=() makedepends=() source=(libsha2-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz) sha256sums=(14470efbb2987e4be57d0c69635f8dedba11eac7ccece5b1a4a41458c180b765) _config=config-portable.mk if test "$(uname -m)" = x86_64; then _config=config-x86.mk elif test "$(uname -m)" = aarch64; then _config=config-armv8.mk fi build() { cd "$srcdir/$pkgname" make CONFIGFILE="${_config}" PREFIX=/usr } check() { cd "$srcdir/$pkgname" make CONFIGFILE="${_config}" CHECK_FLAGS=skip-huge check } package() { cd "$srcdir/$pkgname" make CONFIGFILE="${_config}" PREFIX=/usr DESTDIR="$pkgdir" install }