blob: 7cbcd344e2c3952e3cc25f3f48c5eec070b707fc (
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
37
38
|
# Maintainer: Massimiliano Torromeo <massimiliano.torromeo@gmail.com>
pkgname=nginx-mainline-mod-njs
pkgver=0.2.3 # http://hg.nginx.org/njs/tags
pkgrel=4
_modname="${pkgname#nginx-mainline-mod-}"
_nginxver=1.15.4
pkgdesc='nginScript module for mainline nginx'
arch=('i686' 'x86_64')
depends=('nginx-mainline')
url="https://nginx.org/en/docs/njs_about.html"
license=('CUSTOM')
source=(
https://nginx.org/download/nginx-$_nginxver.tar.gz
njs-$pkgver.tar.gz::http://hg.nginx.org/njs/archive/$pkgver.tar.gz
)
sha256sums=('3324776c800d974ceae8797ab9102ca26a8c3656f5c6fb3f31f2cb1e719458e7'
'cbc7df9ddd7211fe2e252a0394abf26a6d3506a74425362572685aec27a65830')
build() {
cd "$srcdir"/nginx-$_nginxver
./configure --with-compat --with-stream --add-dynamic-module=../njs-$pkgver/nginx
make modules
}
package() {
install -Dm644 "$srcdir"/njs-$pkgver/LICENSE \
"$pkgdir"/usr/share/licenses/$pkgname/LICENSE
cd "$srcdir"/nginx-$_nginxver/objs
for mod in *.so; do
install -Dm755 $mod "$pkgdir"/usr/lib/nginx/modules/$mod
done
}
|