blob: 18a76735aa265e0f7309542d570add9423117bb2 (
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
|
# Maintainer : Roman Volkov <riv19-dev@pm.me>
pkgname=svt-av1-hdr-git
pkgver=3.1.3.r2.ge2beee010
pkgrel=1
pkgdesc='SVT-AV1-HDR is the SVT-AV1 Encoder with perceptual enhancements for SDR and HDR AV1 encoding'
arch=('x86_64')
url='https://github.com/juliobbv-p/svt-av1-hdr'
license=('BSD' 'custom: Alliance for Open Media Patent License 1.0')
depends=('glibc')
makedepends=('git' 'cmake' 'yasm')
provides=('svt-av1' 'svt-av1-git')
conflicts=('svt-av1' 'svt-av1-git' 'svt-av1-psy' 'svt-av1-psy-git' 'svt-av1-hdr-riv19')
source=('svt-av1-hdr::git+https://github.com/juliobbv-p/svt-av1-hdr.git')
sha256sums=('SKIP')
pkgver() {
git -C svt-av1-hdr describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g;s/^v//'
}
build() {
export LDFLAGS+=' -Wl,-z,noexecstack'
cmake -B build -S svt-av1-hdr \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DENABLE_AVX512=ON \
-DNATIVE=ON \
-DBUILD_SHARED_LIBS=ON \
-DSVT_AV1_LTO=ON
make -C build
}
package() {
make -C build DESTDIR="$pkgdir" install
install -D -m644 svt-av1-hdr/{LICENSE,PATENTS}.md -t "${pkgdir}/usr/share/licenses/${pkgname}"
}
|