1 # Maintainer: Massimiliano Torromeo <massimiliano.torromeo@gmail.com>
3 pkgname=nginx-mod-headers-more
7 _modname="${pkgname#nginx-mod-}"
9 pkgdesc="Nginx module to set and clear input and output headers"
12 makedepends=('nginx-src')
13 url="https://github.com/openresty/headers-more-nginx-module"
17 https://github.com/openresty/$_modname-nginx-module/archive/v$pkgver/$_modname-$pkgver.tar.gz
19 sha256sums=('0c0d2ced2ce895b3f45eb2b230cd90508ab2a773299f153de14a43e44c1209b3')
24 ln -sf /usr/src/nginx/auto
25 ln -sf /usr/src/nginx/src
30 /usr/src/nginx/configure \
32 --add-dynamic-module=../$_modname-nginx-module-$pkgver
39 install -Dm755 $mod "$pkgdir"/usr/lib/nginx/modules/$mod
42 install -Dm644 "$srcdir"/$_modname-nginx-module-$pkgver/README.markdown \
43 "$pkgdir"/usr/share/licenses/$pkgname/README.markdown