# Contributor: Oleg Titov # Maintainer: Oleg Titov pkgname=svt-av1 pkgver=1.6.0 pkgrel=0 pkgdesc="Scalable Vector Technology for AV1 encoder (SVT-AV1 Encoder)" url="https://01.org/svt" # 32-bit is not supported upstream # https://gitlab.com/AOMediaCodec/SVT-AV1/-/blob/master/CMakeLists.txt#L40 arch="all !x86 !armhf !armv7" license="BSD-3-Clause-Clear" options="!check" # No test suite from upstream makedepends="cmake samurai nasm" subpackages=" $pkgname-dev libSvtAv1Dec:declib libSvtAv1Enc:enclib " source="https://gitlab.com/AOMediaCodec/SVT-AV1/-/archive/v$pkgver/SVT-AV1-v$pkgver.tar.bz2" builddir="$srcdir/SVT-AV1-v$pkgver" build() { if [ "$CBUILD" != "$CHOST" ]; then CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux" fi export LDFLAGS="$LDFLAGS -Wl,-z,stack-size=1048576" cmake -B build -G Ninja \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_LIBDIR=lib \ -DBUILD_SHARED_LIBS=True \ -DCMAKE_BUILD_TYPE=Release \ $CMAKE_CROSSOPTS . cmake --build build } package() { DESTDIR="$pkgdir" cmake --install build } declib() { amove usr/lib/libSvtAv1Dec.so.* } enclib() { amove usr/lib/libSvtAv1Enc.so.* } sha512sums=" 5aa59293d3334434f78f99e58e8aa8fe32281cd00dfa2f2ab9ad6a3f1a5078bdf29f398edaf1093cdca60a2965932adab16762ba8d93433d64a89545380c7d64 SVT-AV1-v1.6.0.tar.bz2 "