Skip to content

Commit 030b7b2

Browse files
BlueSwordMNeutronPCXT
andauthoredMar 3, 2024
Adding svt-av1-psy as a separate package (#144)
* Adding svt-av1-psy as a separate package * Fixing PKGBUILD and SRCINFO --------- Co-authored-by: BlueSwordM <neutronpcxt@gmail.com>
1 parent 3b46130 commit 030b7b2

File tree

2 files changed

+71
-0
lines changed

2 files changed

+71
-0
lines changed
 

‎svt-av1-psy/.SRCINFO

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
pkgbase = svt-av1-psy
2+
pkgdesc = Scalable Video Technology AV1 encoder and decoder, with added perceptual enhancements for psychovisually optimal AV1 encoding
3+
pkgver = v2.0.0.rc2.r0.g5cac47c1
4+
pkgrel = 1
5+
url = https://github.com/gianni-rosato/svt-av1-psy
6+
arch = x86_64
7+
license = BSD
8+
license = custom: Alliance for Open Media Patent License 1.0
9+
makedepends = cmake
10+
makedepends = git
11+
makedepends = nasm
12+
makedepends = ninja
13+
depends = glibc
14+
provides = svt-av1
15+
conflicts = svt-av1
16+
source = git+https://github.com/gianni-rosato/svt-av1-psy.git#tag=5cac47c1eaee9c5229cdf693bf26e90ff6c54b40
17+
b2sums = SKIP
18+
19+
pkgname = svt-av1-psy

‎svt-av1-psy/PKGBUILD

+52
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
# Maintainer: Maxime Gauduin <alucryd@archlinux.org>
2+
# Contributor: Daniel Bermond <dbermond@archlinux.org>
3+
# Contributor: Thomas Schneider <maxmusterm@gmail.com>
4+
# Contributor: Zak BlueSwordM <neutronpcxt@gmail.com>
5+
6+
pkgname=svt-av1-psy
7+
pkgver=v2.0.0.rc2.r0.g5cac47c1
8+
pkgrel=1
9+
pkgdesc='Scalable Video Technology AV1 encoder and decoder, with added perceptual enhancements for psychovisually optimal AV1 encoding'
10+
arch=(x86_64)
11+
url=https://github.com/gianni-rosato/svt-av1-psy
12+
license=(
13+
BSD
14+
'custom: Alliance for Open Media Patent License 1.0'
15+
)
16+
depends=(glibc)
17+
makedepends=(
18+
cmake
19+
git
20+
nasm
21+
ninja
22+
)
23+
provides=('svt-av1')
24+
conflicts=('svt-av1')
25+
_tag=5cac47c1eaee9c5229cdf693bf26e90ff6c54b40
26+
source=(git+https://github.com/gianni-rosato/svt-av1-psy.git#tag=${_tag})
27+
b2sums=('SKIP')
28+
29+
prepare() {
30+
sed '/CMAKE_BUILD_TYPE Release/d' -i svt-av1-psy/CMakeLists.txt
31+
}
32+
33+
pkgver() {
34+
cd svt-av1-psy
35+
git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
36+
}
37+
38+
build() {
39+
export LDFLAGS="$LDFLAGS -Wl,-z,noexecstack"
40+
cmake -S svt-av1-psy -B build -G Ninja \
41+
-DCMAKE_INSTALL_PREFIX=/usr \
42+
-DBUILD_SHARED_LIBS=ON \
43+
-DENABLE_AVX512=ON
44+
ninja -C build
45+
}
46+
47+
package() {
48+
DESTDIR="${pkgdir}" ninja -C build install
49+
install -Dm 644 svt-av1-psy/{LICENSE,PATENTS}.md -t "${pkgdir}"/usr/share/licenses/svt-av1/
50+
}
51+
52+
# vim: ts=2 sw=2 et:

0 commit comments

Comments
 (0)