* update nginx-mod-headers-more to 0.38-1

This commit is contained in:
Alexander Baldeck 2025-02-17 08:27:10 +01:00
parent 476f87c5b8
commit 961b13ce01
2 changed files with 18 additions and 11 deletions

View File

@ -1,14 +1,18 @@
pkgbase = nginx-mod-headers-more
pkgdesc = Nginx module to set and clear input and output headers
pkgver = 0.37
pkgrel = 6
pkgver = 0.38
pkgrel = 1
url = https://github.com/openresty/headers-more-nginx-module
arch = x86_64
arch = powerpc64le
arch = powerpc64
arch = powerpc
arch = riscv64
license = BSD-2-Clause
makedepends = nginx
makedepends = nginx-src
source = https://github.com/openresty/headers-more-nginx-module/archive/v0.37/headers-more-0.37.tar.gz
sha256sums = cf6e169d6b350c06d0c730b0eaf4973394026ad40094cddd3b3a5b346577019d
source = https://github.com/openresty/headers-more-nginx-module/archive/v0.38/headers-more-0.38.tar.gz
sha256sums = febf7271c0c3de69adbd02c1e98ee43e91a60eeb6b27abfb77b5b206fda5215a
pkgname = nginx-mod-headers-more
depends = nginx=
depends = nginx

View File

@ -2,8 +2,8 @@
# Maintainer: Massimiliano Torromeo <massimiliano.torromeo@gmail.com>
pkgname=nginx-mod-headers-more
pkgver=0.37
pkgrel=6
pkgver=0.38
pkgrel=1
_modname="${pkgname#nginx-mod-}"
@ -16,7 +16,7 @@ license=('BSD-2-Clause')
source=(
https://github.com/openresty/$_modname-nginx-module/archive/v$pkgver/$_modname-$pkgver.tar.gz
)
sha256sums=('cf6e169d6b350c06d0c730b0eaf4973394026ad40094cddd3b3a5b346577019d')
sha256sums=('febf7271c0c3de69adbd02c1e98ee43e91a60eeb6b27abfb77b5b206fda5215a')
prepare() {
mkdir -p build
@ -35,9 +35,12 @@ build() {
}
package() {
local _nginx_version=$(nginx -v 2>&1)
_nginx_version=${_nginx_version/* nginx\/}
depends+=("nginx=${_nginx_version}")
if [[ "$BUILDTOOL" == devtools ]]; then
local nginx_dep="nginx=$(nginx -v 2>&1 | sed 's|.*/||')"
depends+=($nginx_dep)
else
depends+=(nginx)
fi
cd build/objs
for mod in *.so; do