[arch-commits] Commit in nginx-mod-cache_purge/trunk (PKGBUILD)

Bartłomiej Piotrowski bpiotrowski at archlinux.org
Mon Jan 6 14:22:41 UTC 2020


    Date: Monday, January 6, 2020 @ 14:22:41
  Author: bpiotrowski
Revision: 549746

Switch to nginx-src

Modified:
  nginx-mod-cache_purge/trunk/PKGBUILD

----------+
 PKGBUILD |   13 ++++++-------
 1 file changed, 6 insertions(+), 7 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-01-06 14:22:01 UTC (rev 549745)
+++ PKGBUILD	2020-01-06 14:22:41 UTC (rev 549746)
@@ -5,16 +5,15 @@
 pkgrel=5
 
 _modname="${pkgname#nginx-mod-}"
-_nginxver=1.16.1
 
 pkgdesc='Nginx module with ability to purge content from FastCGI, proxy, SCGI and uWSGI caches'
 arch=('x86_64')
 depends=('nginx')
+makedepends=('nginx-src')
 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
 )
 
@@ -22,12 +21,12 @@
 	'B0F4253373F8F6F510D42178520A9993A1C052F8' # Maxim Dounin <mdounin at mdounin.ru>
 )
 
-sha256sums=('f11c2a6dd1d3515736f0324857957db2de98be862461b5a542a3ac6188dbe32b'
-            'SKIP'
-            '2df8501c7ffcac44d4932939faa686fc3cc56e05cfc05bc411bda3313b05dbdd')
+sha256sums=('2df8501c7ffcac44d4932939faa686fc3cc56e05cfc05bc411bda3313b05dbdd')
 
 build() {
-	cd "$srcdir"/nginx-$_nginxver
+  cp -r /usr/src/nginx .
+
+	cd "$srcdir"/nginx
 	./configure --with-compat --add-dynamic-module=../ngx_cache_purge-$pkgver
 	make modules
 }
@@ -36,7 +35,7 @@
 	install -Dm644 "$srcdir"/ngx_cache_purge-$pkgver/LICENSE \
 	               "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
 
-	cd "$srcdir"/nginx-$_nginxver/objs
+	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