Package Details: nginx-mainline-mod-http-xslt-filter 1.25.3-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: BSD-2-Clause
Submitter: Prototik
Maintainer: Repentinus
Last Packager: Repentinus
Votes: 4
Popularity: 0.014218
First Submitted: 2017-06-15 10:46 (UTC)
Last Updated: 2024-01-28 22:41 (UTC)

Latest Comments

terryg137 commented on 2023-05-29 18:02 (UTC)

This package has been out-of-date for quite a while so far and it refuses to be installed with newer version of nginx. To get it compiled with your nginx installation, a quick workaround is to change line 12 of the PKGBUILD file to

makedepends=("nginx-mainline-src={your nginx version from nginx -V}")

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"