Date: Friday, April 20, 2018 @ 11:45:35
  Author: mtorromeo
Revision: 317183

archrelease: copy trunk to community-staging-x86_64

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

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

Copied: nginx-mod-njs/repos/community-staging-x86_64/PKGBUILD (from rev 317182, 
nginx-mod-njs/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD                           (rev 0)
+++ community-staging-x86_64/PKGBUILD   2018-04-20 11:45:35 UTC (rev 317183)
@@ -0,0 +1,40 @@
+# $Id$
+# Maintainer: Massimiliano Torromeo <massimiliano.torro...@gmail.com>
+
+pkgname=nginx-mod-njs
+pkgver=0.2.0 # https://hg.nginx.org/njs/tags
+pkgrel=1
+
+_modname="${pkgname#nginx-mod-}"
+_nginxver=1.14.0
+
+pkgdesc='nginScript module for nginx'
+arch=('x86_64')
+depends=("nginx=$_nginxver")
+url="https://nginx.org/en/docs/njs_about.html";
+license=('CUSTOM')
+
+source=(
+       https://nginx.org/download/nginx-$_nginxver.tar.gz{,.asc}
+       njs-$pkgver.tar.gz::https://hg.nginx.org/njs/archive/$pkgver.tar.gz
+)
+validpgpkeys=(B0F4253373F8F6F510D42178520A9993A1C052F8) # Maxim Dounin 
<mdou...@mdounin.ru>
+sha256sums=('5d15becbf69aba1fe33f8d416d97edd95ea8919ea9ac519eff9bafebb6022cb5'
+            'SKIP'
+            '7031f9c5bca7932357c23d67a6c18cbe72a046e8101b4fc42f3e61e2df019495')
+
+build() {
+       cd "$srcdir"/nginx-$_nginxver
+       ./configure --with-compat --with-stream 
--add-dynamic-module=../njs-$pkgver/nginx
+       make modules
+}
+
+package() {
+       install -Dm644 "$srcdir"/njs-$pkgver/LICENSE \
+                      "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+
+       cd "$srcdir"/nginx-$_nginxver/objs
+       for mod in *.so; do
+               install -Dm755 $mod "$pkgdir"/usr/lib/nginx/modules/$mod
+       done
+}

Reply via email to