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

Giancarlo Razzolini grazzolini at archlinux.org
Wed Apr 22 18:50:17 UTC 2020


    Date: Wednesday, April 22, 2020 @ 18:50:17
  Author: grazzolini
Revision: 617691

archrelease: copy trunk to community-staging-x86_64

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

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

Copied: nginx-mod-echo/repos/community-staging-x86_64/PKGBUILD (from rev 617690, nginx-mod-echo/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2020-04-22 18:50:17 UTC (rev 617691)
@@ -0,0 +1,38 @@
+# Maintainer: Massimiliano Torromeo <massimiliano.torromeo at gmail.com>
+
+pkgname=nginx-mod-echo
+pkgver=0.61
+pkgrel=8
+
+_modname="${pkgname#nginx-mod-}"
+
+pkgdesc='Nginx module that provides directives "echo", "sleep", "time" and more'
+arch=('x86_64')
+depends=('nginx')
+makedepends=('nginx-src')
+url="https://github.com/openresty/echo-nginx-module"
+license=('BSD')
+
+source=(
+	https://github.com/openresty/$_modname-nginx-module/archive/v$pkgver/$_modname-$pkgver.tar.gz
+)
+validpgpkeys=(B0F4253373F8F6F510D42178520A9993A1C052F8) # Maxim Dounin <mdounin at mdounin.ru>
+sha256sums=('2e6a03032555f5da1bdff2ae96c96486f447da3da37c117e0f964ae0753d22aa')
+
+build() {
+  cp -r /usr/src/nginx .
+
+	cd "$srcdir"/nginx
+	./configure --with-compat --add-dynamic-module=../$_modname-nginx-module-$pkgver
+	make modules
+}
+
+package() {
+	install -Dm644 "$srcdir/"$_modname-nginx-module-$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