diff --git a/libnghttp3/alr.sh b/libnghttp3/alr.sh new file mode 100644 index 0000000..e546280 --- /dev/null +++ b/libnghttp3/alr.sh @@ -0,0 +1,56 @@ +name='libnghttp3' +version='1.9.0' +release='1' +desc='HTTP/3 library written in C.' +desc_ru='Библиотека HTTP/3, написанная на C.' +homepage='https://github.com/ngtcp2/nghttp3' +maintainer='Evgeniy Khramov xpamych@yandex.ru' +maintainer_ru="Евгений Храмов " +architectures=('amd64') +license=('MIT') +provides=('libnghttp3.so') +conflicts=('libnghttp3' 'libnghttp3-devel') + +deps=( + 'glibc' +) +build_deps=( + 'autoconf' + 'automake' + 'libtool' +) + +sources=("https://github.com/ngtcp2/nghttp3/releases/download/v$version/nghttp3-$version.tar.xz") +checksums=('SKIP') + +options=(!lto) +backup=('etc/gitea/app.ini') + +prepare() { + cd nghttp3-$version + autoreconf -i +} + +build() { + cd nghttp3-$version + ./configure \ + --prefix=/usr + make +} + +check() { + cd nghttp3-$version + make check +} + +package() { + cd nghttp3-$version/lib + make DESTDIR="${pkgdir}" install + install -Dm644 ../COPYING -t "${pkgdir}/usr/share/licenses/${pkgname}" +} + +files() { + printf '"%s" ' ./usr/include/nghttp3/* + echo ./usr/lib64/**/* + echo ./usr/share/licenses/COPYING +} \ No newline at end of file