diff options
author | Bartłomiej Piotrowski | 2016-03-14 10:50:20 +0100 |
---|---|---|
committer | Bartłomiej Piotrowski | 2016-03-14 10:50:20 +0100 |
commit | 307f8aa45f02071eb60919dee3336164706a3444 (patch) | |
tree | c065f9723c80e88020f2551e8aff3319d8505596 /PKGBUILD | |
download | aur-307f8aa45f02071eb60919dee3336164706a3444.tar.gz |
newpkg: nginx-mod-echo-git 0.58.r15.g4f7aa50-1
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 68 |
1 files changed, 68 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..99f804909b8a --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,68 @@ +# Maintainer: Bartłomiej Piotrowski <bpiotrowski@archlinux.org> + +_ngx_ver=1.9.12 +_mod_name=echo + +pkgname=nginx-mod-${_mod_name}-git +pkgver=0.58.r15.g4f7aa50 +pkgrel=1 +pkgdesc='Nginx module that brings shell-style goodiesto nginx config file' +arch=('i686' 'x86_64') +url='https://github.com/openresty/echo-nginx-module' +license=('custom') +depends=("nginx-mainline=$_ngx_ver") +makedepends=('git') +source=(git://github.com/openresty/${_mod_name}-nginx-module.git + http://nginx.org/download/nginx-${_ngx_ver}.tar.gz) +md5sums=('SKIP' + '0afe4a7e589a0de43b7b54aa055a4351') + +_ngx_flags=( + --with-imap + --with-imap_ssl_module + --with-ipv6 + --with-pcre-jit + --with-file-aio + --with-http_addition_module + --with-http_auth_request_module + --with-http_dav_module + --with-http_degradation_module + --with-http_flv_module + --with-http_geoip_module + --with-http_gunzip_module + --with-http_gzip_static_module + --with-http_mp4_module + --with-http_realip_module + --with-http_secure_link_module + --with-http_ssl_module + --with-http_stub_status_module + --with-http_sub_module + --with-http_v2_module + --with-threads + --with-stream +) + +pkgver() { + cd ${_mod_name}-nginx-module + git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g;s/^v//' +} + +build() { + cd nginx-${_ngx_ver} + ./configure --prefix=/usr ${_ngx_flags[@]} \ + --add-dynamic-module="$srcdir"/${_mod_name}-nginx-module + make -f objs/Makefile modules +} + +package() { + cd nginx-${_ngx_ver}/objs + + for module in *.so; do + install -Dm755 $module "$pkgdir"/usr/lib/nginx/modules/$module + done + + install -d "$pkgdir"/usr/share/licenses/$pkgname/ + sed -n '1806,1827p' "$srcdir"/${_mod_name}-nginx-module/README.markdown > \ + "$pkgdir"/usr/share/licenses/$pkgname/LICENSE +} + |