Date: Monday, November 29, 2021 @ 08:41:18
  Author: mtorromeo
Revision: 1056633

archrelease: copy trunk to community-x86_64

Added:
  nginx-mod-headers-more/repos/community-x86_64/PKGBUILD
    (from rev 1056631, nginx-mod-headers-more/trunk/PKGBUILD)
Deleted:
  nginx-mod-headers-more/repos/community-x86_64/PKGBUILD

----------+
 PKGBUILD |   83 ++++++++++++++++++++++++++++++++-----------------------------
 1 file changed, 44 insertions(+), 39 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD    2021-11-29 08:41:18 UTC (rev 1056632)
+++ PKGBUILD    2021-11-29 08:41:18 UTC (rev 1056633)
@@ -1,39 +0,0 @@
-# Maintainer: Massimiliano Torromeo <[email protected]>
-
-pkgname=nginx-mod-headers-more
-pkgver=0.33
-pkgrel=10
-
-_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")
-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
-)
-validpgpkeys=(B0F4253373F8F6F510D42178520A9993A1C052F8) # Maxim Dounin 
<[email protected]>
-sha256sums=('e462e11533d5c30baa05df7652160ff5979591d291736cfa5edb9fd2edb48c49'
-            'SKIP'
-            'a3dcbab117a9c103bc1ea5200fc00a7b7d2af97ff7fd525f16f8ac2632e30fbf')
-
-build() {
-       cd "$srcdir"/nginx-$_nginxver
-       ./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
-
-       install -Dm644 "$srcdir"/$_modname-nginx-module-$pkgver/README.markdown 
\
-                      "$pkgdir"/usr/share/licenses/$pkgname/README.markdown
-}

Copied: nginx-mod-headers-more/repos/community-x86_64/PKGBUILD (from rev 
1056631, nginx-mod-headers-more/trunk/PKGBUILD)
===================================================================
--- PKGBUILD                            (rev 0)
+++ PKGBUILD    2021-11-29 08:41:18 UTC (rev 1056633)
@@ -0,0 +1,44 @@
+# Maintainer: Massimiliano Torromeo <[email protected]>
+
+pkgname=nginx-mod-headers-more
+pkgver=0.33
+pkgrel=11
+
+_modname="${pkgname#nginx-mod-}"
+
+pkgdesc="Nginx module to set and clear input and output headers"
+arch=('x86_64')
+depends=('nginx')
+makedepends=('nginx-src')
+url="https://github.com/openresty/headers-more-nginx-module";
+license=('BSD')
+
+source=(
+  
https://github.com/openresty/$_modname-nginx-module/archive/v$pkgver/$_modname-$pkgver.tar.gz
+)
+sha256sums=('a3dcbab117a9c103bc1ea5200fc00a7b7d2af97ff7fd525f16f8ac2632e30fbf')
+
+prepare() {
+  mkdir -p build
+  cd build
+  ln -sf /usr/src/nginx/auto
+  ln -sf /usr/src/nginx/src
+}
+
+build() {
+  cd build
+  /usr/src/nginx/configure \
+    --with-compat \
+    --add-dynamic-module=../$_modname-nginx-module-$pkgver
+  make modules
+}
+
+package() {
+  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
+}

Reply via email to