Date: Wednesday, October 31, 2018 @ 10:33:30
  Author: mtorromeo
Revision: 399965

addpkg: nginx-mod-cache-purge

Added:
  nginx-mod-cache_purge/
  nginx-mod-cache_purge/trunk/
  nginx-mod-cache_purge/trunk/PKGBUILD

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

Added: nginx-mod-cache_purge/trunk/PKGBUILD
===================================================================
--- nginx-mod-cache_purge/trunk/PKGBUILD                                (rev 0)
+++ nginx-mod-cache_purge/trunk/PKGBUILD        2018-10-31 10:33:30 UTC (rev 
399965)
@@ -0,0 +1,43 @@
+# Maintainer: Massimiliano Torromeo <[email protected]>
+
+pkgname=nginx-mod-cache_purge
+pkgver=2.5
+pkgrel=1
+
+_modname="${pkgname#nginx-mod-}"
+_nginxver=1.14.0
+
+pkgdesc='Nginx module with ability to purge content from FastCGI, proxy, SCGI 
and uWSGI caches'
+arch=('x86_64')
+depends=('nginx')
+url="https://github.com/nginx-modules/ngx_cache_purge";
+license=('CUSTOM')
+
+source=(
+       https://nginx.org/download/nginx-$_nginxver.tar.gz{,.asc}
+       
https://github.com/nginx-modules/ngx_cache_purge/archive/$pkgver/ngx_cache_purge-$pkgver.tar.gz
+)
+
+validpgpkeys=(
+       'B0F4253373F8F6F510D42178520A9993A1C052F8' # Maxim Dounin 
<[email protected]>
+)
+
+sha256sums=('5d15becbf69aba1fe33f8d416d97edd95ea8919ea9ac519eff9bafebb6022cb5'
+            'SKIP'
+            '2df8501c7ffcac44d4932939faa686fc3cc56e05cfc05bc411bda3313b05dbdd')
+
+build() {
+       cd "$srcdir"/nginx-$_nginxver
+       ./configure --with-compat 
--add-dynamic-module=../ngx_cache_purge-$pkgver
+       make modules
+}
+
+package() {
+       install -Dm644 "$srcdir"/ngx_cache_purge-$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
+}

Reply via email to