diff options
-rw-r--r-- | .SRCINFO | 17 | ||||
-rw-r--r-- | .gitignore | 6 | ||||
-rw-r--r-- | PKGBUILD | 39 |
3 files changed, 62 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..87123dd06393 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,17 @@ +pkgbase = android-x86-srt + pkgdesc = Secure Reliable Transport library (Android x86) + pkgver = 1.5.3 + pkgrel = 1 + url = https://www.srtalliance.org/ + arch = any + license = MPL2 + makedepends = android-cmake + depends = android-x86-openssl + options = !strip + options = !buildflags + options = staticlibs + options = !emptydirs + source = https://github.com/Haivision/srt/archive/refs/tags/v1.5.3.tar.gz + md5sums = df8213a3669dd846ddaad0fa1e9f417b + +pkgname = android-x86-srt 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..c36ea7cf5688 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,39 @@ +# Maintainer: Gonzalo Exequiel Pedone <hipersayan DOT x AT gmail DOT com> +# Contributor: Jan Alexander Steffens (heftig) <heftig@archlinux.org> + +_android_arch=x86 + +pkgname=android-${_android_arch}-srt +pkgver=1.5.3 +pkgrel=1 +arch=('any') +pkgdesc="Secure Reliable Transport library (Android ${_android_arch})" +url="https://www.srtalliance.org/" +license=('MPL2') +depends=("android-${_android_arch}-openssl") +makedepends=('android-cmake') +options=(!strip !buildflags staticlibs !emptydirs) +source=("https://github.com/Haivision/srt/archive/refs/tags/v${pkgver}.tar.gz") +md5sums=('df8213a3669dd846ddaad0fa1e9f417b') + +build() { + cd "${srcdir}/srt-${pkgver}" + source android-env ${_android_arch} + + android-${_android_arch}-cmake \ + -S . \ + -B build \ + -DENABLE_STATIC=ON \ + -DENABLE_APPS=OFF \ + -Wno-dev + cmake --build build +} + +package() { + cd "${srcdir}/srt-${pkgver}" + source android-env ${_android_arch} + + make -C build DESTDIR="$pkgdir" install + ${ANDROID_STRIP} -g --strip-unneeded "${pkgdir}"/${ANDROID_PREFIX_LIB}/*.so + ${ANDROID_STRIP} -g "$pkgdir"/${ANDROID_PREFIX_LIB}/*.a +} |