blob: bb24db42dc95f73d6ef43cb7e6b16079ebf32c5e (
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
39
40
41
42
43
44
|
# Maintainer: Morgenstern <charles [at] charlesbwise [dot] com>
# Contributor: Ricardo <wiiaboo@gmail.com>
# Contributor: jkl <jkl@johnluebs.com>
# Contributor: hdhoang <arch@hdhoang.space>
pkgname=nginx-mainline-mod-fancyindex
pkgver=0.5.2
pkgrel=3
_modname="${pkgname#nginx-mainline-mod-}"
pkgdesc="Fancy index module for the nginx-mainline web server"
arch=('x86_64'
'aarch64'
'armv7h')
url="https://www.nginx.com/resources/wiki/modules/fancy_index/"
license=('BSD')
depends=('nginx-mainline')
makedepends=('nginx-mainline-src')
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/aperezdc/ngx-$_modname/archive/v$pkgver.tar.gz")
sha256sums=('c3dd84d8ba0b8daeace3041ef5987e3fb96e9c7c17df30c9ffe2fe3aa2a0ca31')
# Required for compilation with /usr/src/nginx/configure
prepare() {
install -d nginx
ln -sf /usr/src/nginx/auto nginx/auto
ln -sf /usr/src/nginx/src nginx/src
}
build() {
cd "${srcdir}/nginx"
/usr/src/nginx/configure --with-compat \
--add-dynamic-module=../ngx-"$_modname-$pkgver"
make modules
}
package() {
local _mod
cd "${srcdir}/nginx/objs"
for _mod in *.so; do
install -D "${_mod}" "$pkgdir/usr/lib/nginx/modules/$_mod"
done
install -Dm0644 "$srcdir/ngx-$_modname-$pkgver/LICENSE" \
"$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
|