blob: ee7a8411e71556647dff31bda5a8b30c83acf5f7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
# $Id$
# Maintainer: Martchus <martchus@gmx.net>
pkgname=nginx-mod-accesskey
pkgver=2.0.5
pkgrel=15
_dirname="nginx-accesskey-$pkgver"
_nginxver=1.26.2
pkgdesc='Accesskey module for NGINX'
arch=('x86_64')
depends=("nginx=$_nginxver")
makedepends=("nginx-src")
url='https://github.com/Martchus/nginx-accesskey'
license=('unknown')
source=("$pkgname-$pkgver::https://github.com/Martchus/nginx-accesskey/archive/v${pkgver}.tar.gz")
sha256sums=('f7cb363fb527dfda202009942ed3b1bb98e5ef9723893aa0beba22adf9b1a246')
prepare() {
cd "$srcdir/$_dirname"
}
build() {
cp -r /usr/src/nginx .
cd "$srcdir"/nginx
./configure --with-compat --add-dynamic-module="../$_dirname"
make modules
}
package() {
cd "$srcdir"/nginx/objs
for mod in ngx_*.so; do
install -Dm755 $mod "$pkgdir"/usr/lib/nginx/modules/$mod
done
}
|