Date: Monday, January 6, 2020 @ 14:24:40 Author: bpiotrowski Revision: 549748
Switch to nginx-src Modified: nginx-mod-echo/trunk/PKGBUILD ----------+ PKGBUILD | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2020-01-06 14:23:46 UTC (rev 549747) +++ PKGBUILD 2020-01-06 14:24:40 UTC (rev 549748) @@ -5,25 +5,24 @@ pkgrel=7 _modname="${pkgname#nginx-mod-}" -_nginxver=1.16.1 pkgdesc='Nginx module that provides directives "echo", "sleep", "time" and more' arch=('x86_64') -depends=("nginx=$_nginxver") +depends=('nginx') +makedepends=('nginx-src') url="https://github.com/openresty/echo-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 <mdou...@mdounin.ru> -sha256sums=('f11c2a6dd1d3515736f0324857957db2de98be862461b5a542a3ac6188dbe32b' - 'SKIP' - '2e6a03032555f5da1bdff2ae96c96486f447da3da37c117e0f964ae0753d22aa') +sha256sums=('2e6a03032555f5da1bdff2ae96c96486f447da3da37c117e0f964ae0753d22aa') 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 } @@ -32,7 +31,7 @@ install -Dm644 "$srcdir/"$_modname-nginx-module-$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