diff options
author | Leo <thinkabit.ukim@gmail.com> | 2019-04-30 16:20:48 -0300 |
---|---|---|
committer | Kevin Daudt <kdaudt@alpinelinux.org> | 2019-04-30 19:39:55 +0000 |
commit | 247ce7f6040b19d3cae4ef1e31535f988dbef452 (patch) | |
tree | 7ce409a7fb8cc4dc2d9c1b6b6300852407d9473d /testing/dav1d | |
parent | f55ea0907bd33d1c0407e12928326a4b88bdc0b6 (diff) | |
download | aports-247ce7f6040b19d3cae4ef1e31535f988dbef452.tar.bz2 aports-247ce7f6040b19d3cae4ef1e31535f988dbef452.tar.xz |
testing/dav1d: new aport
Diffstat (limited to 'testing/dav1d')
-rw-r--r-- | testing/dav1d/APKBUILD | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/testing/dav1d/APKBUILD b/testing/dav1d/APKBUILD new file mode 100644 index 0000000000..b143bb8f85 --- /dev/null +++ b/testing/dav1d/APKBUILD @@ -0,0 +1,39 @@ +# Contributor: Leo <thinkabit.ukim@gmail.com> +# Maintainer: Leo <thinkabit.ukim@gmail.com> +pkgname=dav1d +pkgver=0.3.0 +pkgrel=0 +pkgdesc="small and fast AV1 Decoder" +url="https://code.videolan.org/videolan/dav1d" +arch="all" +license="BSD-2-Clause" +makedepends="nasm meson" +subpackages="$pkgname-dev lib$pkgname:libs" +source="https://code.videolan.org/videolan/dav1d/-/archive//${pkgver}/dav1d-${pkgver}.tar.bz2" + +build() { + case "$CARCH" in + armhf*) meson_opts="-Dbuild_asm=false" ;; + *) meson_opts="-Dbuild_asm=true" ;; + esac + + meson \ + --prefix=/usr \ + -Dbuild_tests=true \ + -Dbuild_tools=true \ + -Dfuzzing_engine=none \ + -Dtestdata_tests=false \ + ${meson_opts} \ + build + ninja -C build +} + +check() { + ninja -C build test +} + +package() { + DESTDIR="$pkgdir" ninja -C build install +} + +sha512sums="bc0933bbc7064555e8973c82390e414aca8f52a14c5de7ee3ff92c263722d5c9cc472ba5f1f8d1dd60c4ce9ab0ed880c8b4a53b3d33d3aff24bc8e7fb18b0b84 dav1d-0.3.0.tar.bz2" |