[arch-commits] Commit in nginx-mod-echo/repos (testing-x86_64 testing-x86_64/PKGBUILD)

Giancarlo Razzolini grazzolini at gemini.archlinux.org
Sun Nov 28 19:30:11 UTC 2021


    Date: Sunday, November 28, 2021 @ 19:30:11
  Author: grazzolini
Revision: 1055367

archrelease: copy trunk to testing-x86_64

Added:
  nginx-mod-echo/repos/testing-x86_64/
  nginx-mod-echo/repos/testing-x86_64/PKGBUILD
    (from rev 1055365, nginx-mod-echo/trunk/PKGBUILD)

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

Copied: nginx-mod-echo/repos/testing-x86_64/PKGBUILD (from rev 1055365, nginx-mod-echo/trunk/PKGBUILD)
===================================================================
--- testing-x86_64/PKGBUILD	                        (rev 0)
+++ testing-x86_64/PKGBUILD	2021-11-28 19:30:11 UTC (rev 1055367)
@@ -0,0 +1,43 @@
+# Maintainer: Massimiliano Torromeo <massimiliano.torromeo at gmail.com>
+
+pkgname=nginx-mod-echo
+pkgver=0.62
+pkgrel=3
+
+_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=('86f6866baf7297d85feb42ff6d9c212d1de696f3314a53d3a41a4b533a67ab01')
+
+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 --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 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