Package Details: nginx-mainline-mod-http-xslt-filter 1.21.6-1

Git Clone URL: (read-only, click to copy)
Package Base: nginx-mainline-mod-http-xslt-filter
Description: Transform nginx XML responses using XSLT stylesheets
Upstream URL:
Licenses: custom:BSD-2-clause
Submitter: Prototik
Maintainer: Repentinus
Last Packager: Repentinus
Votes: 3
Popularity: 0.069616
First Submitted: 2017-06-15 10:46 (UTC)
Last Updated: 2022-07-17 19:28 (UTC)

Latest Comments

dmitmel commented on 2022-03-14 19:09 (UTC)

Repentinus: Could you please update the package for nginx 1.26? Here's a patch that also makes the script consistent with the current version of the nginx-mod-http-xslt-filter package:

diff --git a/PKGBUILD b/PKGBUILD
index 6f7160b..d7f923d 100644
@@ -5,33 +5,31 @@
 # Based on nginx-mod-http-xslt-filter AUR package.

-#pkgver=$(pacman -Si nginx-mainline-src | sed -nE 's/^Version *: ([[:alnum:]._]+).*$/\1/p')
-#pkgrel=$(pacman -Si nginx-mainline-src | sed -nE 's/^Version *: [^-]+-(.*)$/\1/p')
-pkgdesc="HTTP XSLT module for the Nginx mainline web server"
+pkgdesc='Nginx mainline module for transforming XML responses using XSLT stylesheets'
 depends=('nginx-mainline' 'libxslt')

 prepare() {
   cp -r /usr/src/nginx/ ./

 build() {
-  cd nginx
+  cd 'nginx'
   _options=$(nginx -V |&
              sed -nE 's/^configure arguments: ([^\n]*)$/\1/p' |
              sed -nE 's/([^'"'"' \t\n]+('"'"'([^'"'"'\]|\\'"'"'?)*'"'"'|"([^"\\]|\\"?)*")?) ?/\1\n/gp')
-  IFS=$'\n' xargs ./configure --with-http_xslt_module=dynamic <<< ${_options[@]}
+  xargs ./configure --with-http_xslt_module=dynamic <<< ${_options}
   make modules

 package() {
-  cd "nginx/objs"
-  for f in *.so; do install -Dm644 "$f" "$pkgdir/usr/lib/nginx/modules/$f"; done
+  cd 'nginx/objs'
+  install -Dm644 -t "$pkgdir/usr/lib/nginx/modules/$f" *.so
   install -dm755 "$pkgdir/usr/share/licenses/"
-  ln -s /usr/share/licenses/nginx/ "$pkgdir/usr/share/licenses/$pkgname"
+  ln -s '/usr/share/licenses/nginx/' "$pkgdir/usr/share/licenses/$pkgname"