diff --git a/libngtcp2/alr.sh b/libngtcp2/alr.sh new file mode 100644 index 0000000..6a5cb2b --- /dev/null +++ b/libngtcp2/alr.sh @@ -0,0 +1,61 @@ +name='libngtcp2' +version='1.12.0' +release='1' +desc='Implementation of IETF QUIC protocol.' +desc_ru='Реализация протокола QUIC.' +homepage='https://github.com/ngtcp2/ngtcp2' +maintainer='Evgeniy Khramov xpamych@yandex.ru' +maintainer_ru="Евгений Храмов " +architectures=('amd64') +license=('MIT') +provides=( + 'libngtcp2.so' + 'libngtcp2_crypto_gnutls.so' + 'libngtcp2_crypto_ossl.so' +) + +deps=( + 'glibc' + 'openssl' + 'gnutls' + +) +build_deps=( + 'autoconf' + 'automake' + 'brotli-devel' + 'gnutls-devel' + 'libtool' +) + +sources=("https://github.com/ngtcp2/ngtcp2/archive/refs/tags/v$version.tar.gz") +checksums=('SKIP') + +prepare() { + cd ngtcp2-$version + autoreconf -i +} + +build() { + cd ngtcp2-$version + ./configure \ + --prefix=/usr \ + --with-libbrotlienc \ + --with-libbrotlidec \ + --with-gnutls \ + --enable-lib-only + make -j$(($(nproc) - 1)) +} + +package() { + cd ngtcp2-$version + make DESTDIR="${pkgdir}" install + install-license ./COPYING ./ngtcp2/COPYING +} + +files() { + printf '"%s" ' ./usr/include/ngtcp2/* + printf '"%s" ' ./usr/lib64/**/* + echo ./usr/share/doc/ngtcp2/README.rst + echo ./usr/share/licenses/ngtcp2/COPYING +} \ No newline at end of file