[arch-commits] Commit in nginx-mod-njs/repos (2 files)

Giancarlo Razzolini grazzolini at gemini.archlinux.org
Sun Nov 28 19:55:37 UTC 2021


    Date: Sunday, November 28, 2021 @ 19:55:37
  Author: grazzolini
Revision: 1055419

archrelease: copy trunk to community-testing-x86_64

Added:
  nginx-mod-njs/repos/community-testing-x86_64/
  nginx-mod-njs/repos/community-testing-x86_64/PKGBUILD
    (from rev 1055418, nginx-mod-njs/trunk/PKGBUILD)

----------+
 PKGBUILD |   48 ++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 48 insertions(+)

Copied: nginx-mod-njs/repos/community-testing-x86_64/PKGBUILD (from rev 1055418, nginx-mod-njs/trunk/PKGBUILD)
===================================================================
--- community-testing-x86_64/PKGBUILD	                        (rev 0)
+++ community-testing-x86_64/PKGBUILD	2021-11-28 19:55:37 UTC (rev 1055419)
@@ -0,0 +1,48 @@
+# Maintainer: Massimiliano Torromeo <massimiliano.torromeo at gmail.com>
+
+pkgname=nginx-mod-njs
+pkgver=0.7.0 # https://hg.nginx.org/njs/tags
+pkgrel=2
+
+_modname="${pkgname#nginx-mod-}"
+
+pkgdesc='nginScript module for nginx'
+arch=('x86_64')
+depends=('nginx')
+makedepends=('nginx-src')
+url="https://nginx.org/en/docs/njs_about.html"
+license=('CUSTOM')
+
+source=(
+  njs-$pkgver.tar.gz::https://hg.nginx.org/njs/archive/$pkgver.tar.gz
+)
+validpgpkeys=(B0F4253373F8F6F510D42178520A9993A1C052F8) # Maxim Dounin <mdounin at mdounin.ru>
+sha256sums=('c98406e2da139e209957c411230e5b43269c27e2007e07df44bc3947c0e3cccc')
+
+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 \
+    --with-stream \
+    --with-http_ssl_module \
+    --with-http_v2_module \
+    --add-dynamic-module=../njs-$pkgver/nginx
+  make modules
+}
+
+package() {
+  install -Dm644 "$srcdir"/njs-$pkgver/LICENSE \
+              "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+
+  cd build/objs
+  for mod in *.so; do
+      install -Dm755 $mod "$pkgdir"/usr/lib/nginx/modules/$mod
+  done
+}



More information about the arch-commits mailing list