# $Id$ # Maintainer: Martchus pkgname=nginx-mod-fancyindex pkgver=0.5.1 pkgrel=1 _dirname="ngx-fancyindex-${pkgver}" _nginxver=1.18.0 pkgdesc='Fancy indexes module for the Nginx web server' arch=('x86_64') depends=("nginx=$_nginxver" "libutil-linux") makedepends=("nginx-src") url='https://github.com/aperezdc/ngx-fancyindex' license=('CUSTOM') source=("$pkgname-$pkgver::https://github.com/aperezdc/ngx-fancyindex/archive/v${pkgver}.tar.gz") sha256sums=('238bd5521d6c9b55780e6871339a7ea79508b9a6758ad2fa4451f2dfe26d94c9') prepare() { cd "$srcdir/$_dirname" } build() { cp -r /usr/src/nginx . cd "$srcdir"/nginx ./configure --with-compat --add-dynamic-module="../$_dirname" make modules } package() { install -Dm755 "$srcdir/$_dirname/LICENSE" "$pkgdir/usr/share/licenses/${pkgname}/LICENSE" cd "$srcdir"/nginx/objs for mod in ngx_*.so; do install -Dm755 $mod "$pkgdir"/usr/lib/nginx/modules/$mod done }