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

Giancarlo Razzolini grazzolini at archlinux.org
Thu May 9 15:19:44 UTC 2019


    Date: Thursday, May 9, 2019 @ 15:19:43
  Author: grazzolini
Revision: 464644

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 464643, nginx-mod-njs/trunk/PKGBUILD)

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

Copied: nginx-mod-njs/repos/community-staging-x86_64/PKGBUILD (from rev 464643, nginx-mod-njs/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2019-05-09 15:19:43 UTC (rev 464644)
@@ -0,0 +1,39 @@
+# Maintainer: Massimiliano Torromeo <massimiliano.torromeo at gmail.com>
+
+pkgname=nginx-mod-njs
+pkgver=0.3.1 # https://hg.nginx.org/njs/tags
+pkgrel=2
+
+_modname="${pkgname#nginx-mod-}"
+_nginxver=1.16.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 <mdounin at mdounin.ru>
+sha256sums=('4fd376bad78797e7f18094a00f0f1088259326436b537eb5af69b01be2ca1345'
+            'SKIP'
+            'ea08596e8442b368be1c31b1bd84f6da3116ea5dd0a3c48b27f15a7ba25dc58a')
+
+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
+}


More information about the arch-commits mailing list