blob: 58a24273b33382cc522dbc53847efb06ca66f742 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
# Maintainer: Gonzalo Exequiel Pedone <hipersayan DOT x AT gmail DOT com>
# Contributor: Levente Polyak <anthraxx[at]archlinux[dot]org>
_android_arch=x86-64
pkgname=android-${_android_arch}-dav1d
pkgver=1.4.3
pkgrel=2
arch=('any')
pkgdesc="AV1 cross-platform decoder focused on speed and correctness (Android ${_android_arch})"
url='https://code.videolan.org/videolan/dav1d/'
license=('BSD')
depends=('android-ndk')
makedepends=('android-meson'
'ninja'
'nasm'
"android-${_android_arch}-xxhash")
options=(!strip !buildflags staticlibs !emptydirs)
source=("https://downloads.videolan.org/pub/videolan/dav1d/${pkgver}/dav1d-${pkgver}.tar.xz")
md5sums=('c84c685c76e51b98e998db0995bd365c')
build() {
cd "${srcdir}/dav1d-${pkgver}"
source android-env ${_android_arch}
android-${_android_arch}-meson build \
-Denable_tools=false \
-Denable_tests=false
ninja -C build all
}
package() {
cd "${srcdir}/dav1d-${pkgver}"
source android-env ${_android_arch}
DESTDIR="${pkgdir}" ninja -C build install
${ANDROID_STRIP} -g --strip-unneeded "${pkgdir}/${ANDROID_PREFIX_LIB}"/*.so
${ANDROID_STRIP} -g "${pkgdir}/${ANDROID_PREFIX_LIB}"/*.a || true
}
|