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

Massimiliano Torromeo mtorromeo at archlinux.org
Fri Jun 11 12:42:20 UTC 2021


    Date: Friday, June 11, 2021 @ 12:42:20
  Author: mtorromeo
Revision: 962778

rebuild for nginx-1.20.1

Modified:
  nginx-mod-cache_purge/trunk/PKGBUILD

----------+
 PKGBUILD |   17 +++++++++++------
 1 file changed, 11 insertions(+), 6 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2021-06-11 12:41:44 UTC (rev 962777)
+++ PKGBUILD	2021-06-11 12:42:20 UTC (rev 962778)
@@ -2,7 +2,7 @@
 
 pkgname=nginx-mod-cache_purge
 pkgver=2.5.1
-pkgrel=2
+pkgrel=3
 
 _modname="${pkgname#nginx-mod-}"
 
@@ -23,11 +23,16 @@
 
 sha256sums=('9db968170c301168c4a623bce3fefe8bfd93d676c2006d1a8b2d5eec668cc22c')
 
+prepare() {
+	mkdir -p build
+	cd build
+	ln -sf /usr/src/nginx/auto
+	ln -sf /usr/src/nginx/src
+}
+
 build() {
-	cp -r /usr/src/nginx .
-
-	cd "$srcdir"/nginx
-	./configure --with-compat --add-dynamic-module=../ngx_cache_purge-$pkgver
+	cd build
+	/usr/src/nginx/configure --with-compat --add-dynamic-module=../ngx_cache_purge-$pkgver
 	make modules
 }
 
@@ -35,7 +40,7 @@
 	install -Dm644 "$srcdir"/ngx_cache_purge-$pkgver/LICENSE \
 	               "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
 
-	cd "$srcdir"/nginx/objs
+	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