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

Massimiliano Torromeo mtorromeo at archlinux.org
Fri Jun 11 12:41:21 UTC 2021


    Date: Friday, June 11, 2021 @ 12:41:20
  Author: mtorromeo
Revision: 962776

rebuild for nginx-1.20.1

Modified:
  nginx-mod-brotli/trunk/PKGBUILD

----------+
 PKGBUILD |   13 ++++++++-----
 1 file changed, 8 insertions(+), 5 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2021-06-11 12:34:12 UTC (rev 962775)
+++ PKGBUILD	2021-06-11 12:41:20 UTC (rev 962776)
@@ -3,7 +3,7 @@
 pkgname=nginx-mod-brotli
 epoch=1
 pkgver=1.0.0rc
-pkgrel=2
+pkgrel=3
 
 _modname="ngx_${pkgname#nginx-mod-}"
 
@@ -21,7 +21,10 @@
 sha256sums=('c85cdcfd76703c95aa4204ee4c2e619aa5b075cac18f428202f65552104add3b')
 
 prepare() {
-  cp -r /usr/src/nginx .
+	mkdir -p build
+	cd build
+	ln -sf /usr/src/nginx/auto
+	ln -sf /usr/src/nginx/src
 
 	cd "$srcdir"/$_modname-$pkgver
 	sed 's@/usr/local@/usr@' -i config
@@ -28,8 +31,8 @@
 }
 
 build() {
-	cd "$srcdir"/nginx
-	./configure --with-compat --add-dynamic-module=../$_modname-$pkgver
+	cd build
+	/usr/src/nginx/configure --with-compat --add-dynamic-module=../$_modname-$pkgver
 	make modules
 }
 
@@ -37,7 +40,7 @@
 	install -Dm644 "$srcdir"/$_modname-$pkgver/LICENSE \
 	               "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
 
-	cd "$srcdir"/nginx/objs
+	cd build/objs
 	for mod in ngx_*.so; do
 		install -Dm755 $mod "$pkgdir"/usr/lib/nginx/modules/$mod
 	done



More information about the arch-commits mailing list