Date: Friday, June 11, 2021 @ 12:46:17
  Author: mtorromeo
Revision: 962788

upgpkg: nginx-mod-ndk-set-misc 0.32+0.3.1-5: rebuild for nginx-1.20.1

Modified:
  nginx-mod-ndk-set-misc/trunk/PKGBUILD

----------+
 PKGBUILD |   19 ++++++++++++-------
 1 file changed, 12 insertions(+), 7 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2021-06-11 12:45:48 UTC (rev 962787)
+++ PKGBUILD    2021-06-11 12:46:17 UTC (rev 962788)
@@ -6,7 +6,7 @@
 pkgbase=nginx-mod-ndk-set-misc
 pkgname=(nginx-mod-ndk nginx-mod-set-misc)
 pkgver=$_setmiscver+$_ndkver
-pkgrel=4
+pkgrel=5
 
 arch=('x86_64')
 depends=('nginx')
@@ -22,11 +22,16 @@
 sha256sums=('f1ad2459c4ee6a61771aa84f77871f4bfe42943a4aa4c30c62ba3f981f52c201'
             '0e971105e210d272a497567fa2e2c256f4e39b845a5ba80d373e26ba1abfbd85')
 
+prepare() {
+       mkdir -p build
+       cd build
+       ln -sf /usr/src/nginx/auto
+       ln -sf /usr/src/nginx/src
+}
+
 build() {
-  cp -r /usr/src/nginx .
-
-       cd "$srcdir"/nginx
-       ./configure --with-compat \
+       cd build
+       /usr/src/nginx/configure --with-compat \
          --add-dynamic-module=../ngx_devel_kit-$_ndkver \
          --add-dynamic-module=../set-misc-nginx-module-$_setmiscver
        make modules
@@ -35,7 +40,7 @@
 package_nginx-mod-ndk() {
        pkgdesc="Nginx module that adds additional generic tools that module 
developers can use in their own modules"
 
-       cd "$srcdir"/nginx/objs
+       cd build/objs
        install -Dm755 ndk_http_module.so 
"$pkgdir"/usr/lib/nginx/modules/ndk_http_module.so
 
        cd "$srcdir"/ngx_devel_kit-$_ndkver
@@ -46,7 +51,7 @@
        pkgdesc="Nginx module that adds various set_xxx directives"
        depends=("nginx" 'nginx-mod-ndk')
 
-       cd "$srcdir"/nginx/objs
+       cd build/objs
        install -Dm755 ngx_http_set_misc_module.so 
"$pkgdir"/usr/lib/nginx/modules/ngx_http_set_misc_module.so
 
        install -Dm644 
"$srcdir"/set-misc-nginx-module-$_setmiscver/README.markdown \

Reply via email to