* add nginx-mod-fancyindex

This commit is contained in:
Alexander Baldeck 2024-12-16 20:07:59 +01:00
parent 06d6c26ace
commit 76b6a404ac
3 changed files with 64 additions and 0 deletions

View File

@ -0,0 +1,19 @@
pkgbase = nginx-mod-fancyindex
pkgdesc = Fancy indexes module for the Nginx web server
pkgver = 0.5.2
pkgrel = 1
url = https://github.com/aperezdc/ngx-fancyindex
arch = i686
arch = x86_64
arch = powerpc64le
arch = powerpc64
arch = powerpc
arch = riscv64
license = BSD
makedepends = nginx-src
depends = nginx
source = https://github.com/aperezdc/ngx-fancyindex/archive/v0.5.2.tar.gz
validpgpkeys = B0F4253373F8F6F510D42178520A9993A1C052F8
md5sums = 5d29c959724b7f1b23879cd122bd0b1d
pkgname = nginx-mod-fancyindex

3
nginx-mod-fancyindex/.gitignore vendored Normal file
View File

@ -0,0 +1,3 @@
*z
pkg
src

View File

@ -0,0 +1,42 @@
# POWER Maintainer: Alexander Baldeck <alex.bldck@gmail.com>
# Maintainer: Mark Weiman <mark.weiman@markzz.com>
# Contributor: hdhoang <arch@hdhoang.space>
pkgname=nginx-mod-fancyindex
pkgver=0.5.2
pkgrel=1
_modname="${pkgname#nginx-mod-}"
pkgdesc='Fancy indexes module for the Nginx web server'
arch=(i686 x86_64 powerpc64le powerpc64 powerpc riscv64)
depends=('nginx')
makedepends=('nginx-src')
url="https://github.com/aperezdc/ngx-fancyindex"
license=('BSD')
source=(https://github.com/aperezdc/ngx-$_modname/archive/v$pkgver.tar.gz
)
validpgpkeys=(B0F4253373F8F6F510D42178520A9993A1C052F8) # Maxim Dounin <mdounin@mdounin.ru>
md5sums=('5d29c959724b7f1b23879cd122bd0b1d')
prepare() {
cp -r /usr/src/nginx .
}
build() {
cd "$srcdir"/nginx
./configure --with-compat --add-dynamic-module=../ngx-$_modname-$pkgver
make modules
}
package() {
install -Dm644 "$srcdir/"ngx-$_modname-$pkgver/LICENSE \
"$pkgdir"/usr/share/licenses/$pkgname/LICENSE
cd "$srcdir"/nginx/objs
for mod in *.so; do
install -Dm755 $mod "$pkgdir"/usr/lib/nginx/modules/$mod
done
}