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

Giancarlo Razzolini grazzolini at archlinux.org
Wed Apr 22 19:35:09 UTC 2020


    Date: Wednesday, April 22, 2020 @ 19:35:09
  Author: grazzolini
Revision: 617710

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 617709, nginx-mod-pagespeed/trunk/PKGBUILD)

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

Copied: nginx-mod-pagespeed/repos/community-staging-x86_64/PKGBUILD (from rev 617709, nginx-mod-pagespeed/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2020-04-22 19:35:09 UTC (rev 617710)
@@ -0,0 +1,46 @@
+# Maintainer: Massimiliano Torromeo <massimiliano.torromeo at gmail.com>
+
+pkgname=nginx-mod-pagespeed
+pkgver=1.13.35.2
+pkgrel=7
+
+_modname="ngx_pagespeed"
+
+_pagespeedver=$pkgver-stable
+_psolver=$pkgver
+
+pkgdesc="PageSpeed module for nginx"
+arch=('x86_64')
+depends=('nginx' "libutil-linux")
+makedepends=('nginx-src')
+url="https://www.ngxpagespeed.com/"
+license=('Apache')
+
+source=(
+	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=('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() {
+  cp -r /usr/src/nginx .
+
+	cd "$srcdir"/nginx
+	./configure --with-compat --add-dynamic-module=../incubator-pagespeed-ngx-$_pagespeedver
+	make modules
+}
+
+package() {
+	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