1 # Maintainer: Sven-Hendrik Haase <svenstaro@archlinux.org>
2 # Contributor: Nathaniel Chin <thegamingorangutans+aur at gmail.com>
7 pkgdesc='Cross-platform command-line encoding framework with per scene quality encoding'
9 url='https://github.com/master-of-zen/Av1an'
11 makedepends=('rust' 'nasm' 'clang')
12 depends=('ffmpeg' 'aom' 'vapoursynth')
13 optdepends=('svt-av1: SVT-AV1 encoder support'
14 'rav1e: rav1e encoder support'
15 'libvpx: vpx encoder support'
16 'vmaf: VMAF calculation support'
17 'mkvtoolnix-cli: mkvmerge support'
18 'ffms2: FFMS2 chunk detection support'
19 'vapoursynth-plugin-lsmashsource: L-SMASH chunk detection support')
20 source=("$pkgname-$pkgver.tar.gz"::https://github.com/master-of-zen/Av1an/archive/refs/tags/$pkgver.tar.gz)
21 sha256sums=('a67fd182a2c70560fb86857e625eece5dabc42cd380b3ed345939ebbbc4a691d')
25 export CFLAGS+=" -ffat-lto-objects"
26 cargo build --release --locked
31 install -Dm755 target/release/av1an "${pkgdir}/usr/bin/av1an"
32 install -Dm644 LICENSE.md "${pkgdir}"/usr/share/licenses/$pkgname/LICENSE.md