diff options
author | Hoàng Đức Hiếu | 2017-07-20 10:11:11 +0700 |
---|---|---|
committer | Hoàng Đức Hiếu | 2017-07-20 10:11:11 +0700 |
commit | 73bfb58a6a849c23801623a0b6b5fab7c2ad253d (patch) | |
tree | 3b2a7a543efd95b38ceb0f1c97500d8382243475 | |
parent | 6e7894fbdcbf7e696c9c12195380785fa296575a (diff) | |
download | aur-73bfb58a6a849c23801623a0b6b5fab7c2ad253d.tar.gz |
properly fix opts
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 11 |
2 files changed, 5 insertions, 8 deletions
@@ -1,7 +1,7 @@ pkgbase = nginx-mainline-mod-fancyindex pkgdesc = Fancy indexes module for the Nginx web server pkgver = 0.4.1 - pkgrel = 6 + pkgrel = 7 url = https://github.com/aperezdc/ngx-fancyindex arch = i686 arch = x86_64 @@ -2,7 +2,7 @@ pkgname=nginx-mainline-mod-fancyindex pkgver=0.4.1 -pkgrel=6 +pkgrel=7 _modname="${pkgname#nginx-mainline-mod-}" _nginxver="$(/bin/nginx -v 2>&1 | grep -Eo '([[:digit:]]|\.)+')" @@ -24,12 +24,9 @@ prepare() { build() { cd "$srcdir"/nginx-$_nginxver - old_IFS=${IFS} - IFS=\' - configure_arguments=($(nginx -V |& grep configure | cut -d ' ' -f 3-)) - IFS=${old_IFS} - ./configure ${configure_arguments[0]}"${configure_arguments[1]}" \ - ${configure_arguments[2]} \ + opts=$(nginx -V 2>&1 | grep 'configure arguments' | sed -r 's@^[^:]+: @@') + IFS=$'\n' opts=( $(xargs -n1 <<< "$opts") ) + ./configure "${opts[@]}" \ --add-dynamic-module=../ngx-$_modname-$pkgver make modules } |