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

Giancarlo Razzolini grazzolini at gemini.archlinux.org
Sun Nov 28 19:26:46 UTC 2021


    Date: Sunday, November 28, 2021 @ 19:26:45
  Author: grazzolini
Revision: 1055358

archrelease: copy trunk to testing-x86_64

Added:
  nginx-mod-brotli/repos/testing-x86_64/
  nginx-mod-brotli/repos/testing-x86_64/PKGBUILD
    (from rev 1055356, nginx-mod-brotli/trunk/PKGBUILD)

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

Copied: nginx-mod-brotli/repos/testing-x86_64/PKGBUILD (from rev 1055356, nginx-mod-brotli/trunk/PKGBUILD)
===================================================================
--- testing-x86_64/PKGBUILD	                        (rev 0)
+++ testing-x86_64/PKGBUILD	2021-11-28 19:26:45 UTC (rev 1055358)
@@ -0,0 +1,47 @@
+# Maintainer: Massimiliano Torromeo <massimiliano.torromeo at gmail.com>
+
+pkgname=nginx-mod-brotli
+epoch=1
+pkgver=1.0.0rc
+pkgrel=4
+
+_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/google/ngx_brotli"
+license=('CUSTOM')
+
+source=(
+	https://github.com/google/$_modname/archive/v$pkgver/$_modname-$pkgver.tar.gz
+)
+validpgpkeys=(B0F4253373F8F6F510D42178520A9993A1C052F8) # Maxim Dounin <mdounin at mdounin.ru>
+sha256sums=('c85cdcfd76703c95aa4204ee4c2e619aa5b075cac18f428202f65552104add3b')
+
+prepare() {
+	mkdir -p build
+	cd build
+	ln -sf /usr/src/nginx/auto
+	ln -sf /usr/src/nginx/src
+
+	cd "$srcdir"/$_modname-$pkgver
+	sed 's@/usr/local@/usr@' -i config
+}
+
+build() {
+	cd build
+	/usr/src/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 build/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