mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-06-06 18:04:54 +02:00
34 lines
1.2 KiB
Text
34 lines
1.2 KiB
Text
# Contributor: Timo Teräs <timo.teras@iki.fi>
|
|
# Maintainer: Timo Teräs <timo.teras@iki.fi>
|
|
pkgname=lua-resty-hmac
|
|
pkgver=0.06
|
|
_pkgver=$pkgver-1
|
|
pkgrel=1
|
|
pkgdesc="HMAC functions for OpenResty"
|
|
url="https://github.com/jkeys089/lua-resty-hmac"
|
|
# ppc64le and 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="$pkgname-$_pkgver.tar.gz::https://github.com/jkeys089/lua-resty-hmac/archive/refs/tags/$_pkgver.tar.gz
|
|
make-install-without-string.lua.patch
|
|
"
|
|
builddir="$srcdir/$pkgname-$_pkgver"
|
|
|
|
package() {
|
|
make DESTDIR="$pkgdir" LUA_LIB_DIR="/usr/share/lua/common" install
|
|
}
|
|
|
|
check() {
|
|
local _modules=/usr/lib/nginx/modules
|
|
make test LUA_LIB_DIR="$builddir/tmp" MODULES=" \
|
|
$_modules/ndk_http_module.so \
|
|
$_modules/ngx_http_lua_module.so \
|
|
"
|
|
}
|
|
|
|
sha512sums="
|
|
7cc5a84f8a8d4cd8e9fce13e98db39c5c96a734e236fe17dd0c663bd4fa506efadacf12bc8f416954b4d4fdea8b67a4339152f06a51b43858963bb3135e5becc lua-resty-hmac-0.06-1.tar.gz
|
|
37698af7034df76352cf721b6e5e4d3ba074619e3a00b14314c9e56532cc0dc6b3984d132a15df985c6647a1d4832daeea6218f0bb68a07939cc0b5b902a7723 make-install-without-string.lua.patch
|
|
"
|