diff options
author | Gonzalo Exequiel Pedone | 2024-03-08 12:10:52 -0300 |
---|---|---|
committer | Gonzalo Exequiel Pedone | 2024-03-08 12:10:52 -0300 |
commit | 198a3144224c6835ebde3d9cd6d86792f1c1926c (patch) | |
tree | b9f1eb8a73874e07fb53a229917dac338f9b0435 | |
download | aur-198a3144224c6835ebde3d9cd6d86792f1c1926c.tar.gz |
New package.
-rw-r--r-- | .SRCINFO | 20 | ||||
-rw-r--r-- | .gitignore | 6 | ||||
-rw-r--r-- | PKGBUILD | 44 |
3 files changed, 70 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..d9fd9ecaf20b --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,20 @@ +pkgbase = android-x86-64-libnghttp3 + pkgdesc = HTTP/3 library written in C (android) + pkgver = 1.2.0 + pkgrel = 1 + url = https://github.com/ngtcp2/nghttp3 + arch = any + license = MIT + makedepends = android-cmake + depends = android-ndk + options = !strip + options = !buildflags + options = staticlibs + options = !emptydirs + source = https://github.com/ngtcp2/nghttp3/releases/download/v1.2.0/nghttp3-1.2.0.tar.xz + source = https://github.com/ngtcp2/nghttp3/releases/download/v1.2.0/nghttp3-1.2.0.tar.xz.asc + validpgpkeys = F4F3B91474D1EB29889BD0EF7E8403D5D673C366 + sha256sums = d2e216bae7bd7362f850922e4237a5caa204853b3594b22adccab4c1e1c1d1aa + sha256sums = SKIP + +pkgname = android-x86-64-libnghttp3 diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..b5b03b115225 --- /dev/null +++ b/.gitignore @@ -0,0 +1,6 @@ +pkg +src +*.tar.xz +*.tar.gz +*.tar.bz2 +*.asc diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..f5b2b340ca13 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,44 @@ +# Maintainer: Gonzalo Exequiel Pedone <hipersayan DOT x AT gmail DOT com> +# Contributor: kpcyrd <kpcyrd[at]archlinux[dot]org> +# Contributor: Christian Hesse <eworm@archlinux.org> + +_android_arch=x86-64 + +pkgname=android-${_android_arch}-libnghttp3 +pkgver=1.2.0 +pkgrel=1 +arch=('any') +pkgdesc='HTTP/3 library written in C (android)' +url='https://github.com/ngtcp2/nghttp3' +license=('MIT') +depends=('android-ndk') +makedepends=('android-cmake') +options=(!strip !buildflags staticlibs !emptydirs) +source=("https://github.com/ngtcp2/nghttp3/releases/download/v${pkgver}/nghttp3-${pkgver}.tar.xz"{,.asc}) +sha256sums=('d2e216bae7bd7362f850922e4237a5caa204853b3594b22adccab4c1e1c1d1aa' + 'SKIP') +validpgpkeys=('F4F3B91474D1EB29889BD0EF7E8403D5D673C366') # Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> + +prepare() { + cd "${srcdir}/nghttp3-$pkgver" + source android-env ${_android_arch} + + autoreconf -i +} + +build() { + cd "${srcdir}/nghttp3-$pkgver" + source android-env ${_android_arch} + + android-${_android_arch}-configure + make $MAKEFLAGS +} + +package() { + cd "${srcdir}/nghttp3-$pkgver" + source android-env ${_android_arch} + + make DESTDIR="$pkgdir" install + ${ANDROID_STRIP} -g --strip-unneeded "${pkgdir}"/${ANDROID_PREFIX_LIB}/*.so + ${ANDROID_STRIP} -g "$pkgdir"/${ANDROID_PREFIX_LIB}/*.a +} |