mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-12-08 23:03:46 +00:00
40 lines
1.2 KiB
Bash
40 lines
1.2 KiB
Bash
# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
|
|
|
|
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
|
# - disable assembly on v5/v6
|
|
|
|
pkgname=dav1d
|
|
pkgver=0.3.0
|
|
pkgrel=1
|
|
pkgdesc='AV1 cross-platform decoder focused on speed and correctness'
|
|
url='https://code.videolan.org/videolan/dav1d/'
|
|
arch=('x86_64')
|
|
license=('BSD')
|
|
depends=('glibc')
|
|
makedepends=('meson' 'ninja' 'nasm' 'doxygen')
|
|
provides=('libdav1d.so')
|
|
source=(https://downloads.videolan.org/pub/videolan/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.xz{,.asc})
|
|
sha512sums=('a1e5bc5d9aa6df5451346b65e8be634588003e24bd8f5f3c14687354c0783287aaf9c68059ef9edcfbb9c8865afaef15ac7bce72780113423f997b710a2eaa2f'
|
|
'SKIP')
|
|
validpgpkeys=('65F7C6B4206BD057A7EB73787180713BE58D1ADC') # VideoLAN Release Signing Key
|
|
|
|
build() {
|
|
cd ${pkgbase}-${pkgver}
|
|
[[ $CARCH == "arm" || $CARCH == "armv6h" ]] && meson_options="-Dbuild_asm=false"
|
|
arch-meson build $meson_options
|
|
ninja -C build
|
|
}
|
|
|
|
check() {
|
|
cd ${pkgbase}-${pkgver}/build
|
|
meson test
|
|
}
|
|
|
|
package() {
|
|
cd ${pkgbase}-${pkgver}
|
|
DESTDIR="${pkgdir}" ninja -C build install
|
|
install -Dm 644 README.md -t "${pkgdir}/usr/share/doc/${pkgname}"
|
|
install -Dm 644 COPYING -t "${pkgdir}/usr/share/licenses/${pkgname}"
|
|
}
|
|
|
|
# vim: ts=2 sw=2 et:
|