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

Massimiliano Torromeo mtorromeo at gemini.archlinux.org
Tue Aug 23 12:11:30 UTC 2022


    Date: Tuesday, August 23, 2022 @ 12:11:30
  Author: mtorromeo
Revision: 1275252

upgpkg: nginx-mod-njs 0.7.6-2: add njs cli to package

Modified:
  nginx-mod-njs/trunk/PKGBUILD

----------+
 PKGBUILD |   13 +++++++++++--
 1 file changed, 11 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2022-08-23 12:11:26 UTC (rev 1275251)
+++ PKGBUILD	2022-08-23 12:11:30 UTC (rev 1275252)
@@ -2,7 +2,7 @@
 
 pkgname=nginx-mod-njs
 pkgver=0.7.6 # https://hg.nginx.org/njs/tags
-pkgrel=1
+pkgrel=2
 
 _modname="${pkgname#nginx-mod-}"
 
@@ -27,7 +27,14 @@
 }
 
 build() {
-  cd build
+  cd "$srcdir/njs-$pkgver"
+  ./configure
+  make njs
+
+  # next configure cleans the build directory
+  mv build/njs ../build/
+
+  cd "$srcdir/build"
   /usr/src/nginx/configure \
     --with-compat \
     --with-stream \
@@ -41,6 +48,8 @@
   install -Dm644 "$srcdir"/njs-$pkgver/LICENSE \
               "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
 
+  install -Dm755 build/njs "$pkgdir"/usr/bin/njs
+
   cd build/objs
   for mod in *.so; do
       install -Dm755 $mod "$pkgdir"/usr/lib/nginx/modules/$mod



More information about the arch-commits mailing list