summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 43730b69972be1d69337f284cbb4f62ed42f9801 (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.2
pkgrel=1
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=('cdfa07cb6641caad509ac8e46ae7aa2a')

build() {
    cd "${srcdir}/dav1d-${pkgver}"
    source android-env ${_android_arch}

    android-${_android_arch}-meson \
        -Denable_tools=false \
        -Denable_tests=false \
        build
    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
}