blob: 9663b191e73f3f37b25a0190aa30651fcdf6bf81 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
pkgname=nginx-http3
pkgver=1.16
pkgrel=1
provides=('nginx')
conflicts=('nginx' 'nginx-unstable' 'nginx-svn' 'nginx-devel' 'nginx-custom-dev' 'nginx-full' 'nginx-libressl')
pkgdesc="Nginx with Cloudflare's http3 path on the top of quiche"
arch=('any')
makedepends=('git' 'cmake' 'make' 'gcc' 'go' 'perl' 'ninja' 'rust')
depends=()
url="https://github.com/cloudflare/quiche/tree/master/extras/nginx"
license=('GPL3')
source=(
"https://nginx.org/download/nginx-$pkgver.$pkgrel.tar.gz"
'git+https://github.com/cloudflare/quiche.git'
)
sha256sums=(
'f11c2a6dd1d3515736f0324857957db2de98be862461b5a542a3ac6188dbe32b'
'SKIP'
)
package() {
tar xzvf nginx-$pkgver.$pkgrel.tar.gz
cd quiche
git submodule update --init --recursive
cd ../nginx-$pkgver.$pkgrel
patch -p01 < ../quiche/extras/nginx/nginx-$pkgver.patch
if [ $(uname -m) -eq 'aarch64' ]; then
sed -i 's/alignas(64)/alignas(16)/g' ../quiche/deps/boringssl/crypto/cipher_extra/aead_test.cc
fi
./configure \
--prefix=/etc/nginx \
--with-http_ssl_module \
--with-http_v2_module \
--with-http_v3_module \
--with-openssl=../quiche/deps/boringssl \
--with-quiche=../quiche
make
make DESTDIR="$pkgdir/" install
cd "$pkgdir/"
mkdir usr
mv etc/nginx/sbin usr/bin
install -Dm644 ../logrotate "$pkgdir"/etc/logrotate.d/nginx
install -Dm644 ../service "$pkgdir"/usr/lib/systemd/system/nginx.service
}
|