Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changing from normal SVT-AV1 to SVT-AV1-PSY #141

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions svt-av1/.SRCINFO
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
pkgbase = svt-av1
pkgdesc = Scalable Video Technology AV1 encoder and decoder
pkgver = 1.8.0
pkgrel = 2
url = https://gitlab.com/AOMediaCodec/SVT-AV1
pkgdesc = Scalable Video Technology AV1 encoder and decoder, with added perceptual enhancements for psychovisually optimal AV1 encoding
pkgver = v2.0.0.rc2.r0.g5cac47c1
pkgrel = 1
url = https://github.com/gianni-rosato/svt-av1-psy
arch = x86_64
license = BSD
license = custom: Alliance for Open Media Patent License 1.0
Expand All @@ -11,7 +11,7 @@ pkgbase = svt-av1
makedepends = nasm
makedepends = ninja
depends = glibc
source = git+https://gitlab.com/AOMediaCodec/SVT-AV1.git#tag=59645eea34e2815b627b8293aa3af254eddd0d69
source = git+https://github.com/gianni-rosato/svt-av1-psy.git#tag=5cac47c1eaee9c5229cdf693bf26e90ff6c54b40
b2sums = SKIP

pkgname = svt-av1
27 changes: 15 additions & 12 deletions svt-av1/PKGBUILD
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
# Maintainer: Maxime Gauduin <[email protected]>
# Contributor: Daniel Bermond <[email protected]>
# Contributor: Thomas Schneider <[email protected]>
# Contributor: Zak BlueSwordM <[email protected]>

pkgname=svt-av1
pkgver=1.8.0
pkgrel=2
pkgdesc='Scalable Video Technology AV1 encoder and decoder'
pkgname=svt-av1-psy
pkgver=v2.0.0.rc2.r0.g5cac47c1
pkgrel=1
pkgdesc='Scalable Video Technology AV1 encoder and decoder, with added perceptual enhancements for psychovisually optimal AV1 encoding'
arch=(x86_64)
url=https://gitlab.com/AOMediaCodec/SVT-AV1
url=https://github.com/gianni-rosato/svt-av1-psy
license=(
BSD
'custom: Alliance for Open Media Patent License 1.0'
Expand All @@ -19,22 +20,24 @@ makedepends=(
nasm
ninja
)
_tag=59645eea34e2815b627b8293aa3af254eddd0d69
source=(git+https://gitlab.com/AOMediaCodec/SVT-AV1.git#tag=${_tag})
provides=('svt-av1')
conflicts=('svt-av1')
_tag=5cac47c1eaee9c5229cdf693bf26e90ff6c54b40
source=(git+https://github.com/gianni-rosato/svt-av1-psy.git#tag=${_tag})
b2sums=('SKIP')

prepare() {
sed '/CMAKE_BUILD_TYPE Release/d' -i SVT-AV1/CMakeLists.txt
sed '/CMAKE_BUILD_TYPE Release/d' -i svt-av1-psy/CMakeLists.txt
}

pkgver() {
cd SVT-AV1
git describe --tags | sed 's/^v//'
cd svt-av1-psy
git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
export LDFLAGS="$LDFLAGS -Wl,-z,noexecstack"
cmake -S SVT-AV1 -B build -G Ninja \
cmake -S svt-av1-psy -B build -G Ninja \
-DCMAKE_INSTALL_PREFIX=/usr \
-DBUILD_SHARED_LIBS=ON \
-DENABLE_AVX512=ON \
Expand All @@ -44,7 +47,7 @@ build() {

package() {
DESTDIR="${pkgdir}" ninja -C build install
install -Dm 644 SVT-AV1/{LICENSE,PATENTS}.md -t "${pkgdir}"/usr/share/licenses/svt-av1/
install -Dm 644 svt-av1-psy/{LICENSE,PATENTS}.md -t "${pkgdir}"/usr/share/licenses/svt-av1/
}

# vim: ts=2 sw=2 et: