PKGBUILDs/nginx-mod-fancyindex/default/PKGBUILD

42 lines
1.1 KiB
Bash
Raw Normal View History

# $Id$
# Maintainer: Martchus <martchus@gmx.net>
pkgname=nginx-mod-fancyindex
2018-07-04 11:41:41 +02:00
pkgver=0.4.3
2018-12-06 18:06:51 +01:00
pkgrel=3
_dirname="ngx-fancyindex-${pkgver}"
2018-12-06 18:06:51 +01:00
_nginxver=1.14.2
pkgdesc='Fancy indexes module for the Nginx web server'
arch=('x86_64')
depends=("nginx=$_nginxver" "libutil-linux")
url='https://github.com/aperezdc/ngx-fancyindex'
license=('CUSTOM')
source=(
https://nginx.org/download/nginx-$_nginxver.tar.gz{,.asc}
"$pkgname-$pkgver::https://github.com/aperezdc/ngx-fancyindex/archive/v${pkgver}.tar.gz"
)
validpgpkeys=(B0F4253373F8F6F510D42178520A9993A1C052F8) # Maxim Dounin <mdounin@mdounin.ru>
2019-03-14 11:18:37 +01:00
sha256sums=('002d9f6154e331886a2dd4e6065863c9c1cf8291ae97a1255308572c02be9797'
'SKIP'
2018-07-04 11:41:41 +02:00
'81698fb0c1ec9f906ce308c055d5d248085caf390f4b92516c1ec93f87c886d4')
prepare() {
cd "$srcdir/$_dirname"
}
build() {
cd "$srcdir"/nginx-$_nginxver
./configure --with-compat --add-dynamic-module="../$_dirname"
make modules
}
package() {
install -Dm755 "$srcdir/$_dirname/LICENSE" "$pkgdir/usr/share/licenses/${pkgname}/LICENSE"
cd "$srcdir"/nginx-$_nginxver/objs
for mod in ngx_*.so; do
install -Dm755 $mod "$pkgdir"/usr/lib/nginx/modules/$mod
done
}