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

Giancarlo Razzolini grazzolini at gemini.archlinux.org
Sun Nov 28 19:57:53 UTC 2021


    Date: Sunday, November 28, 2021 @ 19:57:53
  Author: grazzolini
Revision: 1055426

archrelease: copy trunk to community-testing-x86_64

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

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

Copied: nginx-mod-pagespeed/repos/community-testing-x86_64/PKGBUILD (from rev 1055424, nginx-mod-pagespeed/trunk/PKGBUILD)
===================================================================
--- community-testing-x86_64/PKGBUILD	                        (rev 0)
+++ community-testing-x86_64/PKGBUILD	2021-11-28 19:57:53 UTC (rev 1055426)
@@ -0,0 +1,49 @@
+# Maintainer: Massimiliano Torromeo <massimiliano.torromeo at gmail.com>
+
+pkgname=nginx-mod-pagespeed
+pkgver=1.13.35.2
+pkgrel=10
+
+_modname="ngx_pagespeed"
+
+_pagespeedver=$pkgver-stable
+_psolver=$pkgver
+
+pkgdesc="PageSpeed module for nginx"
+arch=('x86_64')
+depends=('nginx' "util-linux-libs")
+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() {
+	mkdir -p build
+	cd build
+	ln -sf /usr/src/nginx/auto
+	ln -sf /usr/src/nginx/src
+
+	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 build
+	/usr/src/nginx/configure --with-compat --add-dynamic-module=../incubator-pagespeed-ngx-$_pagespeedver
+	make modules
+}
+
+package() {
+	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