diff options
author | Gonzalo Exequiel Pedone | 2019-04-05 11:04:39 -0300 |
---|---|---|
committer | Gonzalo Exequiel Pedone | 2019-04-05 11:04:39 -0300 |
commit | 3a60b69fdec74243de7447a64fdb4ab193380cbf (patch) | |
tree | b9d04fa60f7e0d5ace1ace3080dc32dbdb0548d3 | |
parent | 421f2b4cbda80d897dad62fefb49f67abebdbf70 (diff) | |
download | aur-3a60b69fdec74243de7447a64fdb4ab193380cbf.tar.gz |
Package updated.
-rw-r--r-- | .SRCINFO | 11 | ||||
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | PKGBUILD | 18 | ||||
-rwxr-xr-x | android-env.sh | 25 |
4 files changed, 40 insertions, 15 deletions
@@ -1,21 +1,16 @@ # Generated by mksrcinfo v8 -# jue abr 4 20:54:16 UTC 2019 +# vie abr 5 14:04:00 UTC 2019 pkgbase = android-aarch64-ffmpeg pkgdesc = Complete solution to record, convert and stream audio and video (android) pkgver = 4.1.2 - pkgrel = 2 + pkgrel = 3 url = http://ffmpeg.org/ arch = any license = GPL3 makedepends = android-pkg-config makedepends = git makedepends = yasm - depends = apache-ant - depends = android-ndk>=r18.b - depends = android-platform-22 - depends = android-sdk-25.2.5 - depends = android-sdk-build-tools - depends = android-sdk-platform-tools + depends = android-aarch64-libvorbis options = !strip options = !buildflags options = staticlibs diff --git a/.gitignore b/.gitignore index b5bc2aa573e1..78bc5ca47508 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ pkg src *.tar.xz *.tar.gz +ffmpeg @@ -6,17 +6,12 @@ source android-env.sh ${_android_arch} pkgname=android-${_android_arch}-ffmpeg pkgver=4.1.2 -pkgrel=2 +pkgrel=3 pkgdesc="Complete solution to record, convert and stream audio and video (android)" arch=('any') url="http://ffmpeg.org/" license=('GPL3') -depends=('apache-ant' - 'android-ndk>=r18.b' - "android-platform-$ANDROID_MINIMUM_PLATFORM" - 'android-sdk-25.2.5' - 'android-sdk-build-tools' - 'android-sdk-platform-tools') +depends=("android-${_android_arch}-libvorbis") options=(!strip !buildflags staticlibs !emptydirs) makedepends=('android-pkg-config' 'git' 'yasm') source=("git+https://git.ffmpeg.org/ffmpeg.git#tag=n${pkgver}" @@ -94,6 +89,15 @@ build() { ;; esac + case "$_android_arch" in + aarch64) + ;; + *) + configue_opts+=" + --enable-libvorbis" + ;; + esac + ./configure ${configue_opts} make $MAKEFLAGS } diff --git a/android-env.sh b/android-env.sh index d9f6b78ecbb9..f967d7dcd35c 100755 --- a/android-env.sh +++ b/android-env.sh @@ -6,6 +6,10 @@ _android_arch=$1 +if [ -z "${_android_arch}" ]; then + _android_arch=armv7a-eabi +fi + # Minimum Android platform based on: # # https://developer.android.com/about/dashboards/ @@ -71,3 +75,24 @@ export ANDROID_STRIP=${ANDROID_TOOLS_PREFIX}strip export ANDROID_LIBS=/opt/android-libs/${_android_arch} export PKG_CONFIG_SYSROOT_DIR=${ANDROID_LIBS} export PKG_CONFIG_LIBDIR=${PKG_CONFIG_SYSROOT_DIR}/lib/pkgconfig:${PKG_CONFIG_SYSROOT_DIR}/share/pkgconfig + +ndk_version() { + grep 'Pkg.Revision' ${ANDROID_NDK_ROOT}/source.properties | awk '{print $3}' +} + +ndk_version_ge_than() { + version=$1 + ndk_ver=$(ndk_version) + + if [ "${version}" = "${ndk_ver}" ]; then + return 0 + fi + + older_ver=$(printf "${version}\n${ndk_ver}" | sort -V | head -n 1) + + if [ "${older_ver}" = "${ndk_ver}" ]; then + return 1 + fi + + return 0 +} |