archrelease: copy trunk to community-any
[ArchLinux/community.git] / nginx-mod-headers-more / trunk / PKGBUILD
blob44c7cf6785f501c9bc0805cff42748b6ef66a5ab
1 # Maintainer: Massimiliano Torromeo <massimiliano.torromeo@gmail.com>
3 pkgname=nginx-mod-headers-more
4 pkgver=0.34
5 pkgrel=2
7 _modname="${pkgname#nginx-mod-}"
9 pkgdesc="Nginx module to set and clear input and output headers"
10 arch=('x86_64')
11 depends=('nginx')
12 makedepends=('nginx-src')
13 url="https://github.com/openresty/headers-more-nginx-module"
14 license=('BSD')
16 source=(
17   https://github.com/openresty/$_modname-nginx-module/archive/v$pkgver/$_modname-$pkgver.tar.gz
19 sha256sums=('0c0d2ced2ce895b3f45eb2b230cd90508ab2a773299f153de14a43e44c1209b3')
21 prepare() {
22   mkdir -p build
23   cd build
24   ln -sf /usr/src/nginx/auto
25   ln -sf /usr/src/nginx/src
28 build() {
29   cd build
30   /usr/src/nginx/configure \
31     --with-compat \
32     --add-dynamic-module=../$_modname-nginx-module-$pkgver
33   make modules
36 package() {
37   cd build/objs
38   for mod in *.so; do
39     install -Dm755 $mod "$pkgdir"/usr/lib/nginx/modules/$mod
40   done
42   install -Dm644 "$srcdir"/$_modname-nginx-module-$pkgver/README.markdown \
43                  "$pkgdir"/usr/share/licenses/$pkgname/README.markdown