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

Giancarlo Razzolini grazzolini at gemini.archlinux.org
Fri Jun 10 13:39:33 UTC 2022


    Date: Friday, June 10, 2022 @ 13:39:33
  Author: grazzolini
Revision: 1230072

archrelease: copy trunk to community-staging-x86_64

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

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

Copied: nginx-mod-srcache/repos/community-staging-x86_64/PKGBUILD (from rev 1230071, nginx-mod-srcache/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2022-06-10 13:39:33 UTC (rev 1230072)
@@ -0,0 +1,38 @@
+# Maintainer: Massimiliano Torromeo <massimiliano.torromeo at gmail.com>
+
+pkgname=nginx-mod-srcache
+pkgver=0.32
+pkgrel=5
+
+_modname="${pkgname#nginx-mod-}"
+
+pkgdesc='Nginx module for transparent subrequest-based caching layout for arbitrary locations'
+arch=('x86_64')
+depends=('nginx')
+makedepends=('nginx-src')
+url="https://github.com/openresty/srcache-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=('fd80e59b672e4ff3b4e943740b3facab421c6965226b5934aed16a514baacf47')
+
+build() {
+	cp -r /usr/src/nginx .
+
+	cd "$srcdir"/nginx
+	./configure --with-compat --add-dynamic-module=../$_modname-nginx-module-$pkgver
+	make modules
+}
+
+package() {
+	cd "$srcdir"/nginx/objs
+	for mod in *.so; do
+		install -Dm755 $mod "$pkgdir"/usr/lib/nginx/modules/$mod
+	done
+
+	install -Dm644 "$srcdir"/$_modname-nginx-module-$pkgver/README.markdown \
+	               "$pkgdir"/usr/share/licenses/$pkgname/README.markdown
+}



More information about the arch-commits mailing list