Date: Thursday, May 9, 2019 @ 15:22:29 Author: grazzolini Revision: 464657
archrelease: copy trunk to community-staging-x86_64 Added: nginx-mod-redis/repos/community-staging-x86_64/ nginx-mod-redis/repos/community-staging-x86_64/PKGBUILD (from rev 464656, nginx-mod-redis/trunk/PKGBUILD) ----------+ PKGBUILD | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) Copied: nginx-mod-redis/repos/community-staging-x86_64/PKGBUILD (from rev 464656, nginx-mod-redis/trunk/PKGBUILD) =================================================================== --- community-staging-x86_64/PKGBUILD (rev 0) +++ community-staging-x86_64/PKGBUILD 2019-05-09 15:22:29 UTC (rev 464657) @@ -0,0 +1,39 @@ +# Maintainer: Massimiliano Torromeo <massimiliano.torro...@gmail.com> + +pkgname=nginx-mod-redis +pkgver=0.3.9 +pkgrel=4 + +_modname="${pkgname#nginx-mod-}" +_nginxver=1.16.0 + +pkgdesc='Nginx module for redis caching' +arch=('x86_64') +depends=("nginx=$_nginxver") +url="https://www.nginx.com/resources/wiki/modules/redis/" +license=('CUSTOM') + +source=( + https://nginx.org/download/nginx-$_nginxver.tar.gz{,.asc} + https://people.freebsd.org/~osa/ngx_http_redis-$pkgver.tar.gz +) +validpgpkeys=(B0F4253373F8F6F510D42178520A9993A1C052F8) # Maxim Dounin <mdou...@mdounin.ru> +sha256sums=('4fd376bad78797e7f18094a00f0f1088259326436b537eb5af69b01be2ca1345' + 'SKIP' + '21f87540f0a44b23ffa5df16fb3d788bc90803b255ef14f9c26e3847a6f26f46') + +build() { + cd "$srcdir"/nginx-$_nginxver + ./configure --with-compat --add-dynamic-module=../ngx_http_redis-$pkgver + make modules +} + +package() { + install -Dm644 "$srcdir"/ngx_http_redis-$pkgver/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 +}