diff options
author | Gonzalo Exequiel Pedone | 2024-04-07 02:34:03 -0300 |
---|---|---|
committer | Gonzalo Exequiel Pedone | 2024-04-07 02:34:03 -0300 |
commit | cc3e5070f6d470a3c39130b3d2adf7628058e248 (patch) | |
tree | 768143120333140fea6c262661447d1049260b36 | |
download | aur-cc3e5070f6d470a3c39130b3d2adf7628058e248.tar.gz |
New package.
-rw-r--r-- | .SRCINFO | 21 | ||||
-rw-r--r-- | .gitignore | 6 | ||||
-rw-r--r-- | PKGBUILD | 47 |
3 files changed, 74 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..f5dd07f239df --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,21 @@ +pkgbase = android-x86-aom + pkgdesc = Alliance for Open Media video codec (Android x86) + pkgver = 3.8.2 + pkgrel = 1 + url = https://aomedia.org/ + arch = any + license = BSD-3-Clause + makedepends = android-cmake + makedepends = yasm + depends = android-ndk + options = !strip + options = !buildflags + options = staticlibs + options = !emptydirs + source = https://storage.googleapis.com/aom-releases/libaom-3.8.2.tar.gz + source = https://storage.googleapis.com/aom-releases/libaom-3.8.2.tar.gz.asc + validpgpkeys = B002F08B74A148DAA01F7123A48E86DB0B830498 + md5sums = 4a1a94acf8d2798f7eb31134ba5be98a + md5sums = SKIP + +pkgname = android-x86-aom 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..3c73ad27ecf4 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,47 @@ +# Maintainer: Gonzalo Exequiel Pedone <hipersayan DOT x AT gmail DOT com> +# Contributor: Jan Alexander Steffens (heftig) <heftig@archlinux.org> +# Contributor: Chocobo1 <chocobo1 AT archlinux DOT net> + +_android_arch=x86 + +pkgname=android-${_android_arch}-aom +pkgver=3.8.2 +pkgrel=1 +arch=('any') +pkgdesc="Alliance for Open Media video codec (Android ${_android_arch})" +url="https://aomedia.org/" +license=('BSD-3-Clause') +depends=('android-ndk') +makedepends=('android-cmake' + 'yasm') +options=(!strip !buildflags staticlibs !emptydirs) +source=("https://storage.googleapis.com/aom-releases/libaom-$pkgver.tar.gz"{,.asc}) +md5sums=('4a1a94acf8d2798f7eb31134ba5be98a' + 'SKIP') +validpgpkeys=( + 'B002F08B74A148DAA01F7123A48E86DB0B830498' # AOMedia release signing key <av1-discuss@aomedia.org> +) + +build() { + cd "${srcdir}/libaom-${pkgver}" + source android-env ${_android_arch} + + android-${_android_arch}-cmake \ + -S . \ + -B build \ + -DBUILD_SHARED_LIBS=1 \ + -DENABLE_TESTS=OFF \ + -DENABLE_DOCS=OFF \ + -DENABLE_EXAMPLES=OFF \ + -DENABLE_TOOLS=OFF + make -C build $MAKEFLAGS +} + +package() { + cd "${srcdir}/libaom-${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 +} |