blob: 131819d816c3abd9c4c505270d176ac9c4d4c36e (
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
45
46
47
48
49
50
|
# Maintainer: RyuaNerin <admin@ryuar.in>
# Contributor: hdhoang <arch@hdhoang.space>
# Contributor: jkl
pkgname=nginx-mainline-mod-fancyindex-git
pkgver=0.5.1
pkgrel=1
_modname="ngx_fancyindex"
_nginxver=1.19.3
pkgdesc='Fancy indexes module for the Nginx web server'
arch=('i686' 'x86_64' 'armv7h')
makedepends=('git')
depends=("nginx-mainline=$_nginxver")
provides=('nginx-mainline-mod-fancyindex')
conflicts=('nginx-mainline-mod-fancyindex')
url="https://github.com/aperezdc/ngx-fancyindex"
license=('CUSTOM')
source=(
https://nginx.org/download/nginx-$_nginxver.tar.gz{,.asc}
"$_modname::git+https://github.com/aperezdc/ngx-fancyindex.git"
)
sha256sums=('91e5b74fa17879d2463294e93ad8f6ffc066696ae32ad0478ffe15ba0e9e8df0'
'SKIP'
'SKIP')
validpgpkeys=('B0F4253373F8F6F510D42178520A9993A1C052F8') # Maxim Dounin <mdounin@mdounin.ru>
prepare() {
cd "$srcdir"/$_modname
sed 's@/usr/local@/usr@' -i config
}
build() {
cd "$srcdir"/nginx-$_nginxver
./configure --with-compat \
--add-dynamic-module=../$_modname
make modules
}
package() {
install -Dm644 "$srcdir/"$_modname/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
}
|