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

Giancarlo Razzolini grazzolini at archlinux.org
Thu May 9 15:20:20 UTC 2019


    Date: Thursday, May 9, 2019 @ 15:20:19
  Author: grazzolini
Revision: 464653

archrelease: copy trunk to community-staging-x86_64

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

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

Copied: nginx-mod-pagespeed/repos/community-staging-x86_64/PKGBUILD (from rev 464652, nginx-mod-pagespeed/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2019-05-09 15:20:19 UTC (rev 464653)
@@ -0,0 +1,47 @@
+# Maintainer: Massimiliano Torromeo <massimiliano.torromeo at gmail.com>
+
+pkgname=nginx-mod-pagespeed
+pkgver=1.13.35.2
+pkgrel=5
+
+_modname="ngx_pagespeed"
+
+_nginxver=1.16.0
+_pagespeedver=$pkgver-stable
+_psolver=$pkgver
+
+pkgdesc="PageSpeed module for nginx"
+arch=('x86_64')
+depends=("nginx=$_nginxver" "libutil-linux")
+url="https://www.ngxpagespeed.com/"
+license=('Apache')
+
+source=(
+	https://nginx.org/download/nginx-$_nginxver.tar.gz{,.asc}
+	https://github.com/pagespeed/ngx_pagespeed/archive/v$_pagespeedver/$_modname-$_pagespeedver.tar.gz
+	pagespeed-$_psolver-x86_64.tar.gz::https://dl.google.com/dl/page-speed/psol/$_psolver-x64.tar.gz
+)
+validpgpkeys=(B0F4253373F8F6F510D42178520A9993A1C052F8) # Maxim Dounin <mdounin at mdounin.ru>
+sha256sums=('4fd376bad78797e7f18094a00f0f1088259326436b537eb5af69b01be2ca1345'
+            'SKIP'
+            '68242a30308b21f13de9a36f2aea5c3e34e8a4c0b7c6a37d3369334f6f847d36'
+            'df3ba3c8fc54e13845d0a1daa7a6e3d983126c23912851bbf8ba35be646a434f')
+
+prepare() {
+	cd "$srcdir"/incubator-pagespeed-ngx-$_pagespeedver
+	ln -s ../psol
+	sed -r 's@^pagespeed_libs="(\$psol_binary.*)"@pagespeed_libs="\1 -Wl,-z,noexecstack"@' -i config
+}
+
+build() {
+	cd "$srcdir"/nginx-$_nginxver
+	./configure --with-compat --add-dynamic-module=../incubator-pagespeed-ngx-$_pagespeedver
+	make modules
+}
+
+package() {
+	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