upgpkg: wordpress 6.2.1-1
[ArchLinux/community.git] / av1an / trunk / PKGBUILD
blob3cdd24cf38866650d257996cf1127b01cb9884a6
1 # Maintainer: Sven-Hendrik Haase <svenstaro@archlinux.org>
2 # Contributor: Nathaniel Chin <thegamingorangutans+aur at gmail.com>
4 pkgname=av1an
5 pkgver=0.4.1
6 pkgrel=1
7 pkgdesc='Cross-platform command-line encoding framework with per scene quality encoding'
8 arch=('x86_64')
9 url='https://github.com/master-of-zen/Av1an'
10 license=('GPL3')
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')
23 build() {
24   cd "Av1an-${pkgver}"
25   export CFLAGS+=" -ffat-lto-objects"
26   cargo build --release --locked
29 package() {
30   cd "Av1an-${pkgver}"
31   install -Dm755 target/release/av1an "${pkgdir}/usr/bin/av1an"
32   install -Dm644 LICENSE.md "${pkgdir}"/usr/share/licenses/$pkgname/LICENSE.md