upgpkg: wordpress 6.2.1-1
[ArchLinux/community.git] / nginx-mod-auth-pam / trunk / PKGBUILD
blob5736159a4a3a9d3b7154916be6a578cdd3cf15a6
1 # Maintainer: Massimiliano Torromeo <massimiliano.torromeo@gmail.com>
3 pkgname=nginx-mod-auth-pam
4 pkgver=1.5.3
5 pkgrel=4
7 _modname=ngx_http_auth_pam_module
9 pkgdesc='Nginx module to use PAM for simple http authentication'
10 arch=('x86_64')
11 depends=("nginx" 'pam')
12 makedepends=("nginx-src")
13 url="https://github.com/sto/ngx_http_auth_pam_module"
14 license=('BSD')
16 source=(https://github.com/sto/$_modname/archive/v$pkgver/$_modname-$pkgver.tar.gz)
17 validpgpkeys=(B0F4253373F8F6F510D42178520A9993A1C052F8) # Maxim Dounin <mdounin@mdounin.ru>
18 sha256sums=('882018fea8d6955ab3fe294aafa8ebb1fdff4eac313c29583fef02c6de76fae7')
20 prepare() {
21         cp -r /usr/src/nginx .
24 build() {
25         cd "$srcdir"/nginx
26         ./configure --with-compat --add-dynamic-module=../$_modname-$pkgver
27         make modules
30 package() {
31         install -Dm644 "$srcdir"/$_modname-$pkgver/LICENSE \
32                        "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
34         cd "$srcdir"/nginx/objs
35         for mod in *.so; do
36                 install -Dm755 $mod "$pkgdir"/usr/lib/nginx/modules/$mod
37         done