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-05-16 19:42:19 +00:00
|
|
|
pkgver=0.9.0
|
2021-03-03 23:16:39 +00:00
|
|
|
pkgrel=1
|
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-03-03 23:16:39 +00:00
|
|
|
makedepends=('meson' 'ninja' 'nasm' 'doxygen' 'graphviz' 'xxhash')
|
2021-02-12 00:34:17 +00:00
|
|
|
source=(https://downloads.videolan.org/pub/videolan/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.xz{,.asc}
|
2021-03-03 23:16:39 +00:00
|
|
|
https://code.videolan.org/videolan/dav1d-test-data/-/archive/${pkgver}/dav1d-test-data-${pkgver}.tar.gz)
|
2021-05-16 19:42:19 +00:00
|
|
|
sha512sums=('46ead83042ab951eb4c79c458e060875174739a8a0efd8d34fdcb6ad3c094093f629d16f467c1dbd37a125bba31d0a7b051933540e38c675eade25fefc80ed75'
|
2021-02-12 00:34:17 +00:00
|
|
|
'SKIP'
|
2021-05-16 19:42:19 +00:00
|
|
|
'38a7542c2cf742b5aa97b6c785f3376c8b78b00659ab87ba5a030d4d659bd66dd39813f23a0606fc1a736b8878b60ca85daa804d254f1bd73018fb7afa57873d')
|
|
|
|
b2sums=('261331fb339c4f5e1f854310dd5ee5f0d9d7730385c5eaa5c097a26daa2d92b4283ade127dffbec776da2737f1269797cfdda516d3531e8ac1c0947c431e6e68'
|
2021-02-12 00:34:17 +00:00
|
|
|
'SKIP'
|
2021-05-16 19:42:19 +00:00
|
|
|
'ef029fa912e6cee0a3931b0ff4427c860b09be4683fc8a098a2dcf0dd09db7b3e8c822e19b02b66e20fb4c8494b3650019b44276eb1aadc8134da26b910dc570')
|
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}
|
2021-03-03 23:16:39 +00:00
|
|
|
ln -s "${srcdir}/dav1d-test-data-${pkgver}" tests/dav1d-test-data
|
2021-02-12 00:34:17 +00:00
|
|
|
}
|
|
|
|
|
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:
|