aports/community/lua-resty-hmac/APKBUILD

30 lines
1.0 KiB
Plaintext

# Contributor: Timo Teräs <timo.teras@iki.fi>
# Maintainer: Timo Teräs <timo.teras@iki.fi>
pkgname=lua-resty-hmac
pkgver=0.02.20180101
_commit=989f601acbe74dee71c1a48f3e140a427f2d03ae
pkgrel=2
pkgdesc="HMAC functions for OpenResty"
url="https://github.com/jkeys089/lua-resty-hmac"
# ppc64le, riscv64 blocked by luajit -> nginx-mod-http-lua
arch="noarch !ppc64le !riscv64"
license="BSD-2-Clause"
depends="nginx-mod-http-lua lua-resty-string"
checkdepends="perl-utils perl-test-nginx"
source="https://github.com/jkeys089/lua-resty-hmac/archive/$_commit/lua-resty-hmac-$_commit.tar.gz"
builddir="$srcdir/$pkgname-$_commit"
options="!check"
package() {
make DESTDIR="$pkgdir" LUA_LIB_DIR="$pkgdir/usr/share/lua/common" install
rm "$pkgdir/usr/share/lua/common/resty/string.lua"
}
check() {
make test LUA_LIB_DIR="$builddir/tmp"
}
sha512sums="
9647d14722f5870805fd10f1539ca4235de63689279c92ce6f8c0cb21c590034cb1e8dc7b7bc5f5b216a68eebae281c4b0c4055c936c045bdd0aed990889c0c6 lua-resty-hmac-989f601acbe74dee71c1a48f3e140a427f2d03ae.tar.gz
"