[arch-commits] Commit in nginx-mod-njs/repos (2 files)
Giancarlo Razzolini
grazzolini at archlinux.org
Wed Apr 22 19:33:03 UTC 2020
Date: Wednesday, April 22, 2020 @ 19:33:02
Author: grazzolini
Revision: 617708
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 617707, nginx-mod-njs/trunk/PKGBUILD)
----------+
PKGBUILD | 38 ++++++++++++++++++++++++++++++++++++++
1 file changed, 38 insertions(+)
Copied: nginx-mod-njs/repos/community-staging-x86_64/PKGBUILD (from rev 617707, nginx-mod-njs/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2020-04-22 19:33:02 UTC (rev 617708)
@@ -0,0 +1,38 @@
+# Maintainer: Massimiliano Torromeo <massimiliano.torromeo at gmail.com>
+
+pkgname=nginx-mod-njs
+pkgver=0.3.9 # 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=('83861f2612137dc7c44cc673243a16ba7d44f27e6d6785ac2be33777b5ad670f')
+
+build() {
+ cp -r /usr/src/nginx .
+
+ cd "$srcdir"/nginx
+ ./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/objs
+ for mod in *.so; do
+ install -Dm755 $mod "$pkgdir"/usr/lib/nginx/modules/$mod
+ done
+}
More information about the arch-commits
mailing list