[arch-commits] Commit in nginx-mod-brotli/repos (2 files)

Giancarlo Razzolini grazzolini at archlinux.org
Wed Apr 22 18:45:01 UTC 2020


    Date: Wednesday, April 22, 2020 @ 18:45:01
  Author: grazzolini
Revision: 617685

archrelease: copy trunk to community-staging-x86_64

Added:
  nginx-mod-brotli/repos/community-staging-x86_64/
  nginx-mod-brotli/repos/community-staging-x86_64/PKGBUILD
    (from rev 617684, nginx-mod-brotli/trunk/PKGBUILD)

----------+
 PKGBUILD |   44 ++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 44 insertions(+)

Copied: nginx-mod-brotli/repos/community-staging-x86_64/PKGBUILD (from rev 617684, nginx-mod-brotli/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2020-04-22 18:45:01 UTC (rev 617685)
@@ -0,0 +1,44 @@
+# Maintainer: Massimiliano Torromeo <massimiliano.torromeo at gmail.com>
+
+pkgname=nginx-mod-brotli
+epoch=1
+pkgver=0.1.2
+pkgrel=7
+
+_modname="ngx_${pkgname#nginx-mod-}"
+
+pkgdesc="Brotli compression filter module for nginx"
+arch=('x86_64')
+depends=("nginx" 'brotli')
+makedepends=("nginx-src")
+url="https://github.com/eustas/ngx_brotli"
+license=('CUSTOM')
+
+source=(
+	https://github.com/eustas/$_modname/archive/v$pkgver/$_modname-$pkgver.tar.gz
+)
+validpgpkeys=(B0F4253373F8F6F510D42178520A9993A1C052F8) # Maxim Dounin <mdounin at mdounin.ru>
+sha256sums=('309af9e96c10e80f1884acea96379980979581adc287ce338f084607bd48c185')
+
+prepare() {
+  cp -r /usr/src/nginx .
+
+	cd "$srcdir"/$_modname-$pkgver
+	sed 's@/usr/local@/usr@' -i config
+}
+
+build() {
+	cd "$srcdir"/nginx
+	./configure --with-compat --add-dynamic-module=../$_modname-$pkgver
+	make modules
+}
+
+package() {
+	install -Dm644 "$srcdir"/$_modname-$pkgver/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
+}


More information about the arch-commits mailing list