summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorMassimiliano Torromeo2017-03-10 14:17:29 +0100
committerMassimiliano Torromeo2017-03-10 14:17:29 +0100
commit54dfb847ce48bd04f4d2ea62ced2d302a6464a4e (patch)
tree3c18f833b0f4332f168ba944f8b5bdacef02b4af /PKGBUILD
downloadaur-54dfb847ce48bd04f4d2ea62ced2d302a6464a4e.tar.gz
Initial commit
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD42
1 files changed, 42 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..4ec550a7715
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,42 @@
+# Maintainer: Massimiliano Torromeo <massimiliano.torromeo@gmail.com>
+
+pkgname=nginx-mainline-addon-dav-ext
+pkgver=0.0.3
+pkgrel=1
+
+_modname="${pkgname#nginx-mainline-addon-}"
+_nginxver=1.11.10
+
+pkgdesc='Nginx mainline module with support for missing PROPFIND and OPTIONS WebDAV methods'
+arch=('i686' 'x86_64')
+depends=('nginx-mainline')
+url="https://github.com/arut/nginx-dav-ext-module"
+license=('CUSTOM')
+
+source=(
+ http://nginx.org/download/nginx-$_nginxver.tar.gz
+ https://github.com/arut/nginx-dav-ext-module/archive/v$pkgver/nginx-dav-ext-module-$pkgver.tar.gz
+ nginx-dav-ext-dynamin-module.patch::https://patch-diff.githubusercontent.com/raw/arut/nginx-dav-ext-module/pull/26.patch
+)
+
+sha256sums=('778b3cabb07633f754cd9dee32fc8e22582bce22bfa407be76a806abd935533d'
+ 'd428a0236c933779cb40ac8c91afb19d5c25a376dc3caab825bfd543e1ee530d'
+ '722e12ff18ded5266f9ca29f5d9db79205d8247f82981c928663fbbe39d20833')
+
+prepare() {
+ cd "$srcdir"/nginx-dav-ext-module-$pkgver
+ patch -p1 -i "$srcdir"/nginx-dav-ext-dynamin-module.patch
+}
+
+build() {
+ cd "$srcdir"/nginx-$_nginxver
+ ./configure $(nginx -V 2>&1 | grep 'configure arguments' | sed -r 's@^[^:]+: @@') --add-dynamic-module=../nginx-dav-ext-module-$pkgver
+ make modules
+}
+
+package() {
+ cd "$srcdir"/nginx-$_nginxver/objs
+ for mod in *.so; do
+ install -Dm755 $mod "$pkgdir"/usr/lib/nginx/modules/$mod
+ done
+}