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

Massimiliano Torromeo mtorromeo at archlinux.org
Wed Feb 17 15:17:28 UTC 2021


    Date: Wednesday, February 17, 2021 @ 15:17:28
  Author: mtorromeo
Revision: 862542

upgpkg: nginx-mod-njs 0.5.1-1

Modified:
  nginx-mod-njs/trunk/PKGBUILD

----------+
 PKGBUILD |   19 ++++++++++++-------
 1 file changed, 12 insertions(+), 7 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2021-02-17 15:08:18 UTC (rev 862541)
+++ PKGBUILD	2021-02-17 15:17:28 UTC (rev 862542)
@@ -1,7 +1,7 @@
 # Maintainer: Massimiliano Torromeo <massimiliano.torromeo at gmail.com>
 
 pkgname=nginx-mod-njs
-pkgver=0.5.0 # https://hg.nginx.org/njs/tags
+pkgver=0.5.1 # https://hg.nginx.org/njs/tags
 pkgrel=1
 
 _modname="${pkgname#nginx-mod-}"
@@ -17,13 +17,18 @@
 	njs-$pkgver.tar.gz::https://hg.nginx.org/njs/archive/$pkgver.tar.gz
 )
 validpgpkeys=(B0F4253373F8F6F510D42178520A9993A1C052F8) # Maxim Dounin <mdounin at mdounin.ru>
-sha256sums=('ec874ac63c6e3357251ed373416520b27616da307a54fa2ba31b227c87cb4f39')
+sha256sums=('4c5beeef3bc3708d2aa4848455a1b9f3b1c9036ce4019799c59077b1449d4ff9')
 
+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 --with-stream --add-dynamic-module=../njs-$pkgver/nginx
+	cd build
+	/usr/src/nginx/configure --with-compat --with-stream --add-dynamic-module=../njs-$pkgver/nginx
 	make modules
 }
 
@@ -31,7 +36,7 @@
 	install -Dm644 "$srcdir"/njs-$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