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

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


    Date: Monday, January 6, 2020 @ 14:34:28
  Author: bpiotrowski
Revision: 549754

Switch to nginx-src

Modified:
  nginx-mod-srcache/trunk/PKGBUILD

----------+
 PKGBUILD |   15 +++++++--------
 1 file changed, 7 insertions(+), 8 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-01-06 14:34:19 UTC (rev 549753)
+++ PKGBUILD	2020-01-06 14:34:28 UTC (rev 549754)
@@ -5,31 +5,30 @@
 pkgrel=8
 
 _modname="${pkgname#nginx-mod-}"
-_nginxver=1.16.1
 
 pkgdesc='Nginx module for transparent subrequest-based caching layout for arbitrary locations'
 arch=('x86_64')
-depends=("nginx=$_nginxver")
+depends=('nginx')
+makedepends=('nginx-src')
 url="https://github.com/openresty/srcache-nginx-module"
 license=('BSD')
 
 source=(
-	https://nginx.org/download/nginx-$_nginxver.tar.gz{,.asc}
 	https://github.com/openresty/$_modname-nginx-module/archive/v$pkgver/$_modname-$pkgver.tar.gz
 )
 validpgpkeys=(B0F4253373F8F6F510D42178520A9993A1C052F8) # Maxim Dounin <mdounin at mdounin.ru>
-sha256sums=('f11c2a6dd1d3515736f0324857957db2de98be862461b5a542a3ac6188dbe32b'
-            'SKIP'
-            '3f9729e73a8340926fa9d9fc15707c2f287cd27b6a9fe42e83f660ca48a5972d')
+sha256sums=('3f9729e73a8340926fa9d9fc15707c2f287cd27b6a9fe42e83f660ca48a5972d')
 
 build() {
-	cd "$srcdir"/nginx-$_nginxver
+  cp -r /usr/src/nginx .
+
+	cd "$srcdir"/nginx
 	./configure --with-compat --add-dynamic-module=../$_modname-nginx-module-$pkgver
 	make modules
 }
 
 package() {
-	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