new bblfs: media-libs/dav1d-1.5.0
This commit is contained in:
39
media-libs/dav1d-1.5.0.PKGBUILD
Normal file
39
media-libs/dav1d-1.5.0.PKGBUILD
Normal file
@@ -0,0 +1,39 @@
|
||||
pkgname=dav1d
|
||||
pkgver=1.5.0
|
||||
pkgdesc="dav1d is an AV1 Decoder :)"
|
||||
homepage="https://code.videolan.org/videolan/dav1d"
|
||||
licenses=("BSD-2")
|
||||
makedepends=('glibc' 'meson' 'nasm' 'ninja')
|
||||
sources=("${pkgname}-${pkgver}.tar.xz")
|
||||
urls=("https://downloads.videolan.org/pub/videolan/dav1d/${pkgver}/${sources[0]}")
|
||||
sha512sums=("774881d27d045f468a8617317fa751e1ce452a15c6d6c2c93c3dd3c3544d6b2b91b0c3eb5ff379f113c26b27a02dc4b54d0751b083dcbcb18bb96c66a6504acb")
|
||||
|
||||
src_prepare() {
|
||||
tar -xf ${distdir}/${sources[0]} --strip-components=1
|
||||
}
|
||||
|
||||
src_build() {
|
||||
local meson_args=(
|
||||
--prefix=/usr
|
||||
--buildtype=release
|
||||
--wrap-mode=nodownload
|
||||
-D python.bytecompile=1
|
||||
-D bitdepths=8,16
|
||||
-D enable_asm=true
|
||||
-D enable_tests=true
|
||||
-D xxhash_muxer=disabled
|
||||
-D enable_docs=false
|
||||
)
|
||||
meson setup build "${meson_args[@]}"
|
||||
meson compile -C build
|
||||
}
|
||||
|
||||
src_check() {
|
||||
meson test -C build
|
||||
}
|
||||
|
||||
src_install() {
|
||||
meson install -C build --destdir "$pkgdir"
|
||||
}
|
||||
|
||||
# vim:ft=sh syn=sh et sw=2:
|
||||
Reference in New Issue
Block a user