blob: ee0646e0824f9a53e0d30da91cb3912d65a49dc3 (
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
|
# Maintainer : nyanmisaka <nst799610810@gmail.com>
pkgname=jellyfin-ffmpeg
pkgver=4.4.1
pkgrel=4
pkgdesc='FFmpeg for Jellyfin'
arch=('x86_64')
url='https://github.com/jellyfin/jellyfin-ffmpeg'
license=('GPL3')
depends=(
'bzip2'
'fontconfig'
'fribidi'
'gmp'
'gnutls'
'lame'
'libass.so'
'libbluray.so'
'libdav1d.so'
'libdrm'
'libfreetype.so'
'libmfx'
'libtheora'
'libva.so'
'libva-drm.so'
'libva-x11.so'
'libvdpau'
'libvorbisenc.so'
'libvorbis.so'
'libvpx.so'
'libwebp'
'libx11'
'libx264.so'
'libx265.so'
'libxext'
'libxml2'
'libzimg.so'
'ocl-icd'
'opus'
'srt'
'xz'
'zlib'
'zvbi'
)
makedepends=('git' 'nasm' 'clang' 'ffnvcodec-headers' 'amf-headers-git' 'opencl-headers')
optdepends=('intel-media-driver: for Intel VAAPI support (Broadwell and newer)'
'intel-media-sdk: for Intel Quick Sync Video'
'onevpl-intel-gpu: for Intel Quick Sync Video (12th Gen and newer)'
'intel-compute-runtime: for Intel OpenCL runtime based Tonemapping'
'libva-intel-driver: for Intel legacy VAAPI support (10th Gen and older)'
'libva-mesa-driver: for AMD VAAPI support'
'nvidia-utils: for Nvidia NVDEC/NVENC support')
source=("git+https://github.com/jellyfin/jellyfin-ffmpeg.git#tag=v${pkgver}-${pkgrel}")
sha256sums=('SKIP')
prepare() {
cd ${srcdir}/jellyfin-ffmpeg
git reset --hard v${pkgver}-${pkgrel} && git clean -qfdx
cat debian/patches/*.patch | patch -Nsp1 -d .
}
build() {
cd jellyfin-ffmpeg
printf '%s\n' ' -> Running jellyfin-ffmpeg configure script...'
./configure \
--prefix="/usr/lib/jellyfin-ffmpeg" \
--target-os=linux \
--extra-version=Jellyfin \
--disable-doc \
--disable-ffplay \
--disable-shared \
--disable-libxcb \
--disable-sdl2 \
--disable-xlib \
--enable-lto \
--enable-gpl \
--enable-version3 \
--enable-static \
--enable-gmp \
--enable-gnutls \
--enable-libfontconfig \
--enable-libass \
--enable-libbluray \
--enable-libdrm \
--enable-libfreetype \
--enable-libfribidi \
--enable-libmp3lame \
--enable-libopus \
--enable-libtheora \
--enable-libvorbis \
--enable-libdav1d \
--enable-libwebp \
--enable-libvpx \
--enable-libx264 \
--enable-libx265 \
--enable-libzvbi \
--enable-libzimg \
--enable-opencl \
--enable-vaapi \
--enable-amf \
--enable-libmfx \
--enable-cuda \
--enable-cuda-llvm \
--enable-cuvid \
--enable-nvenc \
--enable-nvdec \
--enable-ffnvcodec
make -j$(nproc)
}
package() {
install -Dm 755 jellyfin-ffmpeg/ffmpeg ${pkgdir}/usr/lib/jellyfin-ffmpeg/ffmpeg
install -Dm 755 jellyfin-ffmpeg/ffprobe ${pkgdir}/usr/lib/jellyfin-ffmpeg/ffprobe
}
|