PKGBUILDs/extra/dav1d/PKGBUILD

64 lines
2.1 KiB
Bash
Raw Normal View History

2019-01-12 03:02:25 +00:00
# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
# - disable assembly on v5/v6
2021-02-12 00:34:17 +00:00
pkgbase=dav1d
pkgname=(dav1d dav1d-doc)
2021-01-20 20:03:54 +00:00
pkgver=0.8.1
2021-02-12 00:34:17 +00:00
pkgrel=2
_dav1d_test_data_commit=0b1ae65ec0c949bb1aac496d1b3f8bde5ffb10b8
2019-01-12 03:02:25 +00:00
pkgdesc='AV1 cross-platform decoder focused on speed and correctness'
url='https://code.videolan.org/videolan/dav1d/'
arch=('x86_64')
license=('BSD')
2021-02-12 00:34:17 +00:00
makedepends=('git' 'meson' 'ninja' 'nasm' 'doxygen' 'graphviz')
source=(https://downloads.videolan.org/pub/videolan/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.xz{,.asc}
"git+https://code.videolan.org/videolan/dav1d-test-data.git#commit=${_dav1d_test_data_commit}")
2021-01-20 20:03:54 +00:00
sha512sums=('ee087768f3afcca76b3db7fc6c528d471891f65295b7e0981922cdbdfe26e919c94144dc395cc697035c1200f4baed9fc233666b5ecf0a2281e869b9f1e3a1b5'
2021-02-12 00:34:17 +00:00
'SKIP'
2019-06-06 00:54:00 +00:00
'SKIP')
2021-01-20 20:03:54 +00:00
b2sums=('4be5c666c2212b36e532c77a1bba235d44260723bf398be1e856095def1b123cb964599f75f83717601c8428294a3c3a2bf10d81c1e63134a2e995ee9d0d2655'
2021-02-12 00:34:17 +00:00
'SKIP'
2020-03-27 01:20:33 +00:00
'SKIP')
2019-06-06 00:54:00 +00:00
validpgpkeys=('65F7C6B4206BD057A7EB73787180713BE58D1ADC') # VideoLAN Release Signing Key
2019-01-12 03:02:25 +00:00
2021-02-12 00:34:17 +00:00
prepare() {
cd ${pkgbase}-${pkgver}
ln -s "${srcdir}/dav1d-test-data" tests/dav1d-test-data
}
2019-01-12 03:02:25 +00:00
build() {
cd ${pkgbase}-${pkgver}
[[ $CARCH == "arm" || $CARCH == "armv6h" ]] && meson_options="-Dbuild_asm=false"
2021-02-12 00:34:17 +00:00
arch-meson -Dtestdata_tests=true $meson_options build
ninja -C build all doc/html
2019-01-12 03:02:25 +00:00
}
check() {
cd ${pkgbase}-${pkgver}/build
meson test
}
2021-02-12 00:34:17 +00:00
package_dav1d() {
depends=('glibc')
provides=('libdav1d.so')
optdepends=('dav1d-doc: HTML documentation')
2019-01-12 03:02:25 +00:00
cd ${pkgbase}-${pkgver}
DESTDIR="${pkgdir}" ninja -C build install
2021-02-12 00:34:17 +00:00
install -Dm 644 README.md CONTRIBUTING.md NEWS -t "${pkgdir}/usr/share/doc/${pkgname}"
install -Dm 644 COPYING -t "${pkgdir}/usr/share/licenses/${pkgname}"
}
package_dav1d-doc() {
pkgdesc+=" (documentation)"
cd ${pkgbase}-${pkgver}
install -d "${pkgdir}/usr/share/doc/${pkgbase}"
cp -r build/doc/html -t "${pkgdir}/usr/share/doc/${pkgbase}"
2019-01-12 03:02:25 +00:00
install -Dm 644 COPYING -t "${pkgdir}/usr/share/licenses/${pkgname}"
}
# vim: ts=2 sw=2 et: