summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorGonzalo Exequiel Pedone2019-07-20 19:17:10 -0300
committerGonzalo Exequiel Pedone2019-07-20 19:17:10 -0300
commit1a3c0fb5d3c7e46b991ad66e80898e6871fb7b2e (patch)
tree52a8a9a664cd59194ded794bc45c0ef2d82d46ad
downloadaur-1a3c0fb5d3c7e46b991ad66e80898e6871fb7b2e.tar.gz
New package.
-rw-r--r--.SRCINFO19
-rw-r--r--.gitignore5
-rw-r--r--PKGBUILD78
3 files changed, 102 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..b756bf5b2b2
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,19 @@
+pkgbase = android-aarch64-x265
+ pkgdesc = Open Source H265/HEVC video encoder (android)
+ pkgver = 3.1.1
+ pkgrel = 1
+ url = https://bitbucket.org/multicoreware/x265
+ arch = any
+ license = GPL
+ makedepends = android-cmake
+ makedepends = nasm
+ depends = android-ndk
+ options = !strip
+ options = !buildflags
+ options = staticlibs
+ options = !emptydirs
+ source = https://bitbucket.org/multicoreware/x265/downloads/x265_3.1.1.tar.gz
+ sha256sums = 827900c7cc0a0105b8a96460fab7cd22b97afa7b2835b5cb979c44bddaa3c8d0
+
+pkgname = android-aarch64-x265
+
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..47731b2e711
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,5 @@
+pkg
+src
+*.tar.xz
+*.tar.gz
+*.tar.bz2
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..954ce9d5ebc
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,78 @@
+# Maintainer: Gonzalo Exequiel Pedone <hipersayan DOT x AT gmail DOT com>
+
+_android_arch=aarch64
+source android-env ${_android_arch}
+
+pkgname=android-${_android_arch}-x265
+pkgver=3.1.1
+pkgrel=1
+arch=('any')
+pkgdesc='Open Source H265/HEVC video encoder (android)'
+license=('GPL')
+url='https://bitbucket.org/multicoreware/x265'
+depends=('android-ndk')
+options=(!strip !buildflags staticlibs !emptydirs)
+makedepends=('android-cmake' 'nasm')
+source=("https://bitbucket.org/multicoreware/x265/downloads/x265_${pkgver}.tar.gz")
+sha256sums=('827900c7cc0a0105b8a96460fab7cd22b97afa7b2835b5cb979c44bddaa3c8d0')
+
+build() {
+ cd "${srcdir}"/x265_${pkgver}
+ unset LDFLAGS CPPFLAGS
+
+ if [[ ${_android_arch} != x86 ]]; then
+ mkdir build-12 && cd build-12
+
+ android-${_android_arch}-cmake \
+ -DLIB_INSTALL_DIR=lib \
+ -DENABLE_SHARED=FALSE \
+ -DENABLE_CLI=FALSE \
+ -DHIGH_BIT_DEPTH=TRUE \
+ -DMAIN12=TRUE \
+ -DEXPORT_C_API=FALSE \
+ ../source
+ make $MAKEFLAGS
+
+ cd .. && mkdir build-10 && cd build-10
+
+ android-${_android_arch}-cmake \
+ -DLIB_INSTALL_DIR=lib \
+ -DENABLE_SHARED=FALSE \
+ -DENABLE_CLI=FALSE \
+ -DHIGH_BIT_DEPTH=TRUE \
+ -DEXPORT_C_API=FALSE \
+ ../source
+ make $MAKEFLAGS
+
+ cd .. && mkdir build-8 && cd build-8
+ ln -s ../build-10/libx265.a libx265_main10.a
+ ln -s ../build-12/libx265.a libx265_main12.a
+
+ android-${_android_arch}-cmake \
+ -DLIB_INSTALL_DIR=lib \
+ -DENABLE_SHARED=FALSE \
+ -DENABLE_CLI=FALSE \
+ -DEXTRA_LIB='x265_main10.a;x265_main12.a' \
+ -DEXTRA_LINK_FLAGS='-L .' \
+ -DLINKED_10BIT=TRUE \
+ -DLINKED_12BIT=TRUE \
+ ../source
+ make $MAKEFLAGS
+ else
+ mkdir build-8 && cd build-8
+
+ android-${_android_arch}-cmake \
+ -DLIB_INSTALL_DIR=lib \
+ -DENABLE_SHARED=FALSE \
+ -DENABLE_CLI=FALSE \
+ ../source
+ make $MAKEFLAGS
+ fi
+}
+
+package() {
+ cd "${srcdir}"/x265_${pkgver}/build-8
+
+ make DESTDIR="$pkgdir" install
+ ${ANDROID_STRIP} -g "$pkgdir"/${ANDROID_PREFIX_LIB}/*.a
+}