Date: Monday, January 6, 2020 @ 14:22:01 Author: bpiotrowski Revision: 549745
Switch to nginx-src Modified: nginx-mod-brotli/trunk/PKGBUILD ----------+ PKGBUILD | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2020-01-06 14:21:12 UTC (rev 549744) +++ PKGBUILD 2020-01-06 14:22:01 UTC (rev 549745) @@ -6,30 +6,29 @@ pkgrel=6 _modname="ngx_${pkgname#nginx-mod-}" -_nginxver=1.16.1 pkgdesc="Brotli compression filter module for nginx" arch=('x86_64') -depends=("nginx=$_nginxver" 'brotli') +depends=("nginx" 'brotli') +makedepends=("nginx-src") url="https://github.com/eustas/ngx_brotli" license=('CUSTOM') source=( - https://nginx.org/download/nginx-$_nginxver.tar.gz{,.asc} https://github.com/eustas/$_modname/archive/v$pkgver/$_modname-$pkgver.tar.gz ) validpgpkeys=(B0F4253373F8F6F510D42178520A9993A1C052F8) # Maxim Dounin <mdou...@mdounin.ru> -sha256sums=('f11c2a6dd1d3515736f0324857957db2de98be862461b5a542a3ac6188dbe32b' - 'SKIP' - '309af9e96c10e80f1884acea96379980979581adc287ce338f084607bd48c185') +sha256sums=('309af9e96c10e80f1884acea96379980979581adc287ce338f084607bd48c185') prepare() { + cp -r /usr/src/nginx . + cd "$srcdir"/$_modname-$pkgver sed 's@/usr/local@/usr@' -i config } build() { - cd "$srcdir"/nginx-$_nginxver + cd "$srcdir"/nginx ./configure --with-compat --add-dynamic-module=../$_modname-$pkgver make modules } @@ -38,7 +37,7 @@ install -Dm644 "$srcdir"/$_modname-$pkgver/LICENSE \ "$pkgdir"/usr/share/licenses/$pkgname/LICENSE - cd "$srcdir"/nginx-$_nginxver/objs + cd "$srcdir"/nginx/objs for mod in ngx_*.so; do install -Dm755 $mod "$pkgdir"/usr/lib/nginx/modules/$mod done