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

Massimiliano Torromeo mtorromeo at archlinux.org
Fri Jun 11 12:43:09 UTC 2021


    Date: Friday, June 11, 2021 @ 12:43:08
  Author: mtorromeo
Revision: 962780

rebuild for nginx-1.20.1

Modified:
  nginx-mod-echo/trunk/PKGBUILD

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

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2021-06-11 12:42:28 UTC (rev 962779)
+++ PKGBUILD	2021-06-11 12:43:08 UTC (rev 962780)
@@ -2,7 +2,7 @@
 
 pkgname=nginx-mod-echo
 pkgver=0.62
-pkgrel=1
+pkgrel=2
 
 _modname="${pkgname#nginx-mod-}"
 
@@ -19,11 +19,16 @@
 validpgpkeys=(B0F4253373F8F6F510D42178520A9993A1C052F8) # Maxim Dounin <mdounin at mdounin.ru>
 sha256sums=('86f6866baf7297d85feb42ff6d9c212d1de696f3314a53d3a41a4b533a67ab01')
 
+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=../$_modname-nginx-module-$pkgver
+	cd build
+	/usr/src/nginx/configure --with-compat --add-dynamic-module=../$_modname-nginx-module-$pkgver
 	make modules
 }
 
@@ -31,7 +36,7 @@
 	install -Dm644 "$srcdir/"$_modname-nginx-module-$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