Date: Sunday, September 25, 2022 @ 15:03:46
  Author: jelle
Revision: 1309493

archrelease: copy trunk to community-testing-x86_64

Added:
  nginx-mod-vts/repos/community-testing-x86_64/
  nginx-mod-vts/repos/community-testing-x86_64/PKGBUILD
    (from rev 1309492, nginx-mod-vts/trunk/PKGBUILD)

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

Copied: nginx-mod-vts/repos/community-testing-x86_64/PKGBUILD (from rev 
1309492, nginx-mod-vts/trunk/PKGBUILD)
===================================================================
--- community-testing-x86_64/PKGBUILD                           (rev 0)
+++ community-testing-x86_64/PKGBUILD   2022-09-25 15:03:46 UTC (rev 1309493)
@@ -0,0 +1,32 @@
+# Maintainer: Jelle van der Waa <[email protected]>
+# Contributor: Giovanni Harting <[email protected]>
+
+_modname="nginx-module-vts"
+pkgname=nginx-mod-vts
+pkgver=0.2.1
+pkgrel=1
+pkgdesc="Nginx virtual host traffic status module"
+arch=('x86_64')
+depends=('nginx')
+makedepends=('nginx-src')
+url="https://github.com/vozlt/nginx-module-vts";
+license=('BSD')
+source=(${pkgname}-${pkgver}.tar.gz::https://github.com/vozlt/$_modname/archive/v$pkgver.tar.gz)
+sha256sums=('1a63d78d3ae4df18b3a57a616eeee006cdc0bd71aa7ea2947046004b123704f4')
+
+build() {
+    cp -r /usr/src/nginx .
+
+    cd nginx
+    ./configure --with-compat --add-dynamic-module=../$_modname-$pkgver
+    make modules
+}
+
+package() {
+    install -Dm0644 "nginx-module-vts-$pkgver"/LICENSE 
"${pkgdir}"/usr/share/licenses/$pkgname/LICENSE
+
+    cd nginx/objs
+    for mod in *.so; do
+        install -Dm755 $mod "$pkgdir"/usr/lib/nginx/modules/$mod
+    done
+}

Reply via email to