pkgname=nginx-mod-http-dav-ext
pkgver=3.0.0
pkgrel=0
pkgdesc="Nginx module for WebDAV support"
url="https://github.com/arut/nginx-dav-ext-module"
arch="all"
license="BSD-2-Clause"
depends="nginx"
makedepends="
linux-headers
openssl-dev
pcre2-dev
zlib-dev
openssl
abuild
musl-dev
libxslt-dev
libxml2-utils
make
gcc
unzip
xz
g++
coreutils
"
source="
nginx-1.25.4.tar.gz::https://nginx.org/download/nginx-1.25.4.tar.gz
nginx-dav-ext-module-$pkgver.tar.gz::https://github.com/arut/nginx-dav-ext-module/archive/v$pkgver.gz
"
options="!check"
build() {
cd "$srcdir"/nginx-1.25.4/
./configure \
--with-compat \
--with-http_dav_module \
--add-dynamic-module="$srcdir"/nginx-dav-ext-module-$pkgver
make modules
}
package() {
install -Dm755 "$srcdir"/nginx-1.25.4/objs/ngx_http_dav_ext_module.so \
"$pkgdir"/etc/nginx/modules/
}