diff --git a/nginx.pagbuild b/nginx.pagbuild new file mode 100644 index 0000000..7a8021c --- /dev/null +++ b/nginx.pagbuild @@ -0,0 +1,27 @@ +name="nginx" +version="1.27.0" +release=1 +description="High-performance HTTP server and reverse proxy" +license="BSD-2-Clause" +arch="x86_64" +homepage="https://nginx.org" + +source="https://nginx.org/download/nginx-1.27.0.tar.gz" + +depends=("pcre2" "openssl" "zlib") + +build() { + cd "$srcdir/nginx-${version}" + ./configure \ + --prefix=/usr \ + --sbin-path=/usr/bin/nginx \ + --conf-path=/etc/nginx/nginx.conf \ + --with-http_ssl_module \ + --with-http_v2_module + make -j$(nproc) +} + +package() { + cd "$srcdir/nginx-${version}" + make DESTDIR="$pkgdir" install +}