blob: aeed01cd6907d636a5bb509c3a34cb4915af3f36 (
plain) (
tree)
|
|
# Maintainer: Mattias Andrée <m@`base64 -d`(bWFhbmRyZWU).se>
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
}
|