Skip to content

Commit

Permalink
Adding svt-av1-psy as a separate package (#144)
Browse files Browse the repository at this point in the history
* Adding svt-av1-psy as a separate package

* Fixing PKGBUILD and SRCINFO

---------

Co-authored-by: BlueSwordM <[email protected]>
  • Loading branch information
BlueSwordM and NeutronPCXT authored Mar 3, 2024
1 parent 3b46130 commit 030b7b2
Show file tree
Hide file tree
Showing 2 changed files with 71 additions and 0 deletions.
19 changes: 19 additions & 0 deletions svt-av1-psy/.SRCINFO
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
pkgbase = svt-av1-psy
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
makedepends = cmake
makedepends = git
makedepends = nasm
makedepends = ninja
depends = glibc
provides = svt-av1
conflicts = svt-av1
source = git+https://github.com/gianni-rosato/svt-av1-psy.git#tag=5cac47c1eaee9c5229cdf693bf26e90ff6c54b40
b2sums = SKIP

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

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://github.com/gianni-rosato/svt-av1-psy
license=(
BSD
'custom: Alliance for Open Media Patent License 1.0'
)
depends=(glibc)
makedepends=(
cmake
git
nasm
ninja
)
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-psy/CMakeLists.txt
}

pkgver() {
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-psy -B build -G Ninja \
-DCMAKE_INSTALL_PREFIX=/usr \
-DBUILD_SHARED_LIBS=ON \
-DENABLE_AVX512=ON
ninja -C build
}

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

# vim: ts=2 sw=2 et:

0 comments on commit 030b7b2

Please sign in to comment.