blob: b87cb34698f3c7a2441d33ee7ee9c265e051c537 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
# Maintainer: Nathaniel Chin <thegamingorangutans+aur at gmail.com>
pkgname=av1an-git
pkgver=r2240.c44f779
pkgrel=1
pkgdesc='A cross-platform all-in-one tool for streamlining AV1 encoding'
arch=('x86_64')
url='https://github.com/master-of-zen/Av1an'
license=('GPL3')
makedepends=('git' 'cargo' 'nasm' 'clang')
depends=('ffmpeg' 'aom' 'vapoursynth')
optdepends=('svt-av1: SVT-AV1 encoder support'
'rav1e: rav1e encoder support'
'libvpx: vpx encoder support'
'vmaf: VMAF calculation support'
'mkvtoolnix-cli: mkvmerge support'
'ffms2'
'vapoursynth-plugin-lsmashsource')
provides=('av1an')
conflicts=('av1an')
source=("git+https://github.com/master-of-zen/Av1an.git")
sha256sums=('SKIP')
pkgver() {
cd "Av1an"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
prepare() {
cd "Av1an"
cargo fetch --locked --target "x86_64-unknown-linux-gnu"
}
build() {
cd "Av1an"
export CFLAGS+=" -ffat-lto-objects"
RUSTUP_TOOLCHAIN=stable cargo build --release --target-dir=target --frozen --no-default-features
}
package() {
cd "Av1an"
install -Dm 755 target/release/av1an -t "${pkgdir}/usr/bin"
}
|