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

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


    Date: Monday, January 6, 2020 @ 14:36:59
  Author: bpiotrowski
Revision: 549757

Switch to nginx-src

Modified:
  nginx-mod-redis/trunk/PKGBUILD

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

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-01-06 14:36:57 UTC (rev 549756)
+++ PKGBUILD	2020-01-06 14:36:59 UTC (rev 549757)
@@ -5,25 +5,24 @@
 pkgrel=5
 
 _modname="${pkgname#nginx-mod-}"
-_nginxver=1.16.1
 
 pkgdesc='Nginx module for redis caching'
 arch=('x86_64')
-depends=("nginx=$_nginxver")
+depends=('nginx')
+makedepends=('nginx-src')
 url="https://www.nginx.com/resources/wiki/modules/redis/"
 license=('CUSTOM')
 
 source=(
-	https://nginx.org/download/nginx-$_nginxver.tar.gz{,.asc}
 	https://people.freebsd.org/~osa/ngx_http_redis-$pkgver.tar.gz
 )
 validpgpkeys=(B0F4253373F8F6F510D42178520A9993A1C052F8) # Maxim Dounin <mdounin at mdounin.ru>
-sha256sums=('f11c2a6dd1d3515736f0324857957db2de98be862461b5a542a3ac6188dbe32b'
-            'SKIP'
-            '21f87540f0a44b23ffa5df16fb3d788bc90803b255ef14f9c26e3847a6f26f46')
+sha256sums=('21f87540f0a44b23ffa5df16fb3d788bc90803b255ef14f9c26e3847a6f26f46')
 
 build() {
-	cd "$srcdir"/nginx-$_nginxver
+  cp -r /usr/src/nginx .
+
+	cd "$srcdir"/nginx
 	./configure --with-compat --add-dynamic-module=../ngx_http_redis-$pkgver
 	make modules
 }
@@ -32,7 +31,7 @@
 	install -Dm644 "$srcdir"/ngx_http_redis-$pkgver/LICENSE \
 	               "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
 
-	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