mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-01-18 15:12:02 +01:00
40 lines
952 B
Plaintext
40 lines
952 B
Plaintext
# Contributor: Leo <thinkabit.ukim@gmail.com>
|
|
# Maintainer: Leo <thinkabit.ukim@gmail.com>
|
|
pkgname=dav1d
|
|
pkgver=0.3.1
|
|
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="b810c993a2a262f75ea0d4404428bc5660ac0d4c4d41aa311bc2180abecc40b36e73858f436b27372f4a1a0b7c700df4f8cc535130c663d6bfba2206d549e0f2 dav1d-0.3.1.tar.bz2"
|