[arch-commits] Commit in nginx-mod-headers-more/trunk (PKGBUILD)

Massimiliano Torromeo mtorromeo at gemini.archlinux.org
Mon Nov 29 08:41:04 UTC 2021


    Date: Monday, November 29, 2021 @ 08:41:04
  Author: mtorromeo
Revision: 1056630

fixed nginx version dependency

Modified:
  nginx-mod-headers-more/trunk/PKGBUILD

----------+
 PKGBUILD |   41 +++++++++++++++++++++++------------------
 1 file changed, 23 insertions(+), 18 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2021-11-29 08:40:11 UTC (rev 1056629)
+++ PKGBUILD	2021-11-29 08:41:04 UTC (rev 1056630)
@@ -2,38 +2,43 @@
 
 pkgname=nginx-mod-headers-more
 pkgver=0.33
-pkgrel=10
+pkgrel=11
 
 _modname="${pkgname#nginx-mod-}"
-_nginxver=1.20.1
 
 pkgdesc="Nginx module to set and clear input and output headers"
 arch=('x86_64')
-depends=("nginx=$_nginxver")
+depends=('nginx')
+makedepends=('nginx-src')
 url="https://github.com/openresty/headers-more-nginx-module"
 license=('BSD')
 
 source=(
-	https://nginx.org/download/nginx-$_nginxver.tar.gz{,.asc}
-	https://github.com/openresty/$_modname-nginx-module/archive/v$pkgver/$_modname-$pkgver.tar.gz
+  https://github.com/openresty/$_modname-nginx-module/archive/v$pkgver/$_modname-$pkgver.tar.gz
 )
-validpgpkeys=(B0F4253373F8F6F510D42178520A9993A1C052F8) # Maxim Dounin <mdounin at mdounin.ru>
-sha256sums=('e462e11533d5c30baa05df7652160ff5979591d291736cfa5edb9fd2edb48c49'
-            'SKIP'
-            'a3dcbab117a9c103bc1ea5200fc00a7b7d2af97ff7fd525f16f8ac2632e30fbf')
+sha256sums=('a3dcbab117a9c103bc1ea5200fc00a7b7d2af97ff7fd525f16f8ac2632e30fbf')
 
+prepare() {
+  mkdir -p build
+  cd build
+  ln -sf /usr/src/nginx/auto
+  ln -sf /usr/src/nginx/src
+}
+
 build() {
-	cd "$srcdir"/nginx-$_nginxver
-	./configure --with-compat --add-dynamic-module=../$_modname-nginx-module-$pkgver
-	make modules
+  cd build
+  /usr/src/nginx/configure \
+    --with-compat \
+    --add-dynamic-module=../$_modname-nginx-module-$pkgver
+  make modules
 }
 
 package() {
-	cd "$srcdir"/nginx-$_nginxver/objs
-	for mod in *.so; do
-		install -Dm755 $mod "$pkgdir"/usr/lib/nginx/modules/$mod
-	done
+  cd build/objs
+  for mod in *.so; do
+    install -Dm755 $mod "$pkgdir"/usr/lib/nginx/modules/$mod
+  done
 
-	install -Dm644 "$srcdir"/$_modname-nginx-module-$pkgver/README.markdown \
-	               "$pkgdir"/usr/share/licenses/$pkgname/README.markdown
+  install -Dm644 "$srcdir"/$_modname-nginx-module-$pkgver/README.markdown \
+                 "$pkgdir"/usr/share/licenses/$pkgname/README.markdown
 }



More information about the arch-commits mailing list