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

Bartłomiej Piotrowski bpiotrowski at archlinux.org
Tue Jul 11 17:57:06 UTC 2017


    Date: Tuesday, July 11, 2017 @ 17:57:05
  Author: bpiotrowski
Revision: 244345

archrelease: copy trunk to community-testing-i686, community-testing-x86_64

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

-----------------------------------+
 community-testing-i686/PKGBUILD   |   52 ++++++++++++++++++++++++++++++++++++
 community-testing-x86_64/PKGBUILD |   52 ++++++++++++++++++++++++++++++++++++
 2 files changed, 104 insertions(+)

Copied: nginx-mod-brotli/repos/community-testing-i686/PKGBUILD (from rev 244344, nginx-mod-brotli/trunk/PKGBUILD)
===================================================================
--- community-testing-i686/PKGBUILD	                        (rev 0)
+++ community-testing-i686/PKGBUILD	2017-07-11 17:57:05 UTC (rev 244345)
@@ -0,0 +1,52 @@
+# $Id$
+# Maintainer: Massimiliano Torromeo <massimiliano.torromeo at gmail.com>
+
+_nginxver=1.12.1
+pkgname=nginx-mod-brotli
+pkgver=$_nginxver
+pkgrel=2
+
+_modname="ngx_${pkgname#nginx-mod-}"
+
+# https://github.com/google/ngx_brotli
+# https://github.com/google/ngx_brotli/tree/master/deps
+_modver=bfd2885b2da4d763fed18f49216bb935223cd34b
+_brotliver=222564a95d9ab58865a096b8d9f7324ea5f2e03e
+
+pkgdesc="Brotli compression filter module for nginx"
+arch=('i686' 'x86_64')
+depends=("nginx=$_nginxver")
+url="https://github.com/google/ngx_brotli"
+license=('CUSTOM')
+
+source=(
+	http://nginx.org/download/nginx-$_nginxver.tar.gz
+	https://github.com/google/$_modname/archive/$_modver/$_modname-$_modver.tar.gz
+	https://github.com/google/brotli/archive/$_brotliver/brotli-$_brotliver.tar.gz
+)
+
+sha256sums=('8793bf426485a30f91021b6b945a9fd8a84d87d17b566562c3797aba8fac76fb'
+            '3a5348d484554f3d1787d06961fc7886fda44d17264ab7e6cdf1f4a8fa04231e'
+            '4299a2a86f0b931e80dd548be17fcaa5a6c158a0727f497f22cbb365668af0fe')
+
+prepare() {
+	cd "$srcdir"/$_modname-$_modver/deps
+	rm -rf brotli
+	ln -s ../../brotli-$_brotliver brotli
+}
+
+build() {
+	cd "$srcdir"/nginx-$_nginxver
+	./configure --with-compat --add-dynamic-module=../$_modname-$_modver
+	make modules
+}
+
+package() {
+	install -Dm644 "$srcdir"/$_modname-$_modver/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
+}

Copied: nginx-mod-brotli/repos/community-testing-x86_64/PKGBUILD (from rev 244344, nginx-mod-brotli/trunk/PKGBUILD)
===================================================================
--- community-testing-x86_64/PKGBUILD	                        (rev 0)
+++ community-testing-x86_64/PKGBUILD	2017-07-11 17:57:05 UTC (rev 244345)
@@ -0,0 +1,52 @@
+# $Id$
+# Maintainer: Massimiliano Torromeo <massimiliano.torromeo at gmail.com>
+
+_nginxver=1.12.1
+pkgname=nginx-mod-brotli
+pkgver=$_nginxver
+pkgrel=2
+
+_modname="ngx_${pkgname#nginx-mod-}"
+
+# https://github.com/google/ngx_brotli
+# https://github.com/google/ngx_brotli/tree/master/deps
+_modver=bfd2885b2da4d763fed18f49216bb935223cd34b
+_brotliver=222564a95d9ab58865a096b8d9f7324ea5f2e03e
+
+pkgdesc="Brotli compression filter module for nginx"
+arch=('i686' 'x86_64')
+depends=("nginx=$_nginxver")
+url="https://github.com/google/ngx_brotli"
+license=('CUSTOM')
+
+source=(
+	http://nginx.org/download/nginx-$_nginxver.tar.gz
+	https://github.com/google/$_modname/archive/$_modver/$_modname-$_modver.tar.gz
+	https://github.com/google/brotli/archive/$_brotliver/brotli-$_brotliver.tar.gz
+)
+
+sha256sums=('8793bf426485a30f91021b6b945a9fd8a84d87d17b566562c3797aba8fac76fb'
+            '3a5348d484554f3d1787d06961fc7886fda44d17264ab7e6cdf1f4a8fa04231e'
+            '4299a2a86f0b931e80dd548be17fcaa5a6c158a0727f497f22cbb365668af0fe')
+
+prepare() {
+	cd "$srcdir"/$_modname-$_modver/deps
+	rm -rf brotli
+	ln -s ../../brotli-$_brotliver brotli
+}
+
+build() {
+	cd "$srcdir"/nginx-$_nginxver
+	./configure --with-compat --add-dynamic-module=../$_modname-$_modver
+	make modules
+}
+
+package() {
+	install -Dm644 "$srcdir"/$_modname-$_modver/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
+}



More information about the arch-commits mailing list