summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMassimiliano Torromeo2020-12-28 19:25:04 +0100
committerMassimiliano Torromeo2020-12-28 19:25:04 +0100
commit162227f0f68553c1c5e7439042fa27d67422d382 (patch)
tree918e145b117b9d6110d52e9e53136ead2f4b9c55
parent5b115a4fe8edbcc539714320623aff7329f5d778 (diff)
downloadaur-nginx-mainline-mod-dav-ext.tar.gz
Updated to build against nginx-mainline-mod-src
-rw-r--r--.SRCINFO8
-rw-r--r--PKGBUILD29
2 files changed, 15 insertions, 22 deletions
diff --git a/.SRCINFO b/.SRCINFO
index c517fd6fa83..1e0378a3955 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,19 +1,15 @@
pkgbase = nginx-mainline-mod-dav-ext
pkgdesc = Nginx mainline module with support for missing PROPFIND and OPTIONS WebDAV methods
pkgver = 3.0.0
- pkgrel = 20
+ pkgrel = 21
url = https://github.com/arut/nginx-dav-ext-module
arch = i686
arch = x86_64
license = CUSTOM
+ makedepends = nginx-mainline-src
depends = nginx-mainline
depends = libxslt
- source = https://nginx.org/download/nginx-1.19.3.tar.gz
- source = https://nginx.org/download/nginx-1.19.3.tar.gz.asc
source = https://github.com/arut/nginx-dav-ext-module/archive/v3.0.0/nginx-dav-ext-module-3.0.0.tar.gz
- validpgpkeys = B0F4253373F8F6F510D42178520A9993A1C052F8
- sha256sums = 91e5b74fa17879d2463294e93ad8f6ffc066696ae32ad0478ffe15ba0e9e8df0
- sha256sums = SKIP
sha256sums = d2499d94d82d4e4eac8425d799e52883131ae86a956524040ff2fd230ef9f859
pkgname = nginx-mainline-mod-dav-ext
diff --git a/PKGBUILD b/PKGBUILD
index 64ef40e321e..8d95247a632 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,38 +2,35 @@
pkgname=nginx-mainline-mod-dav-ext
pkgver=3.0.0
-pkgrel=20
+pkgrel=21
_modname="${pkgname#nginx-mainline-mod-}"
-_nginxver=1.19.3
pkgdesc='Nginx mainline module with support for missing PROPFIND and OPTIONS WebDAV methods'
arch=('i686' 'x86_64')
depends=('nginx-mainline' 'libxslt')
+makedepends=('nginx-mainline-src')
url="https://github.com/arut/nginx-dav-ext-module"
license=('CUSTOM')
-source=(
- https://nginx.org/download/nginx-$_nginxver.tar.gz{,.asc}
- https://github.com/arut/nginx-dav-ext-module/archive/v$pkgver/nginx-dav-ext-module-$pkgver.tar.gz
-)
+source=(https://github.com/arut/nginx-dav-ext-module/archive/v$pkgver/nginx-dav-ext-module-$pkgver.tar.gz)
+sha256sums=('d2499d94d82d4e4eac8425d799e52883131ae86a956524040ff2fd230ef9f859')
-validpgpkeys=(
- 'B0F4253373F8F6F510D42178520A9993A1C052F8' # Maxim Dounin <mdounin@mdounin.ru>
-)
-
-sha256sums=('91e5b74fa17879d2463294e93ad8f6ffc066696ae32ad0478ffe15ba0e9e8df0'
- 'SKIP'
- 'd2499d94d82d4e4eac8425d799e52883131ae86a956524040ff2fd230ef9f859')
+prepare() {
+ mkdir -p build
+ cd build
+ ln -sf /usr/src/nginx/auto
+ ln -sf /usr/src/nginx/src
+}
build() {
- cd "$srcdir"/nginx-$_nginxver
- ./configure --with-compat --add-dynamic-module=../nginx-dav-ext-module-$pkgver
+ cd build
+ /usr/src/nginx/configure --with-compat --add-dynamic-module=../nginx-dav-ext-module-$pkgver
make modules
}
package() {
- cd "$srcdir"/nginx-$_nginxver/objs
+ cd build/objs
for mod in *.so; do
install -Dm755 $mod "$pkgdir"/usr/lib/nginx/modules/$mod
done