blob: c128a78c2f88808af004a9f391cceb8c4976fe73 (
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
|
# Maintainer: Vladislav Minakov <v@minakov.pro>
pkgname=angie-mod-njs
pkgver=0.8.9
pkgrel=1
pkgdesc='nginScript module for angie'
arch=('x86_64')
depends=('angie' 'libxslt')
makedepends=('angie-src')
url="https://github.com/nginx/njs"
license=('CUSTOM')
source=(njs-$pkgver.tar.gz::https://github.com/nginx/njs/archive/refs/tags/$pkgver.tar.gz)
sha256sums=('918accac7ec252baac1146e49fdc0f5c101c66ef3b9ceba7ce1b59be704acebf')
prepare() {
mkdir -p build
cd build
ln -sf /usr/src/angie/auto
ln -sf /usr/src/angie/src
}
build() {
cd build
/usr/src/angie/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 build/objs
for mod in *.so; do
install -Dm755 $mod "$pkgdir/usr/lib/nginx/modules/$mod"
done
}
|