blob: d58e688c7727567df575255c066349a4260586ea (
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
|
# vim:set ft=sh:
# Maintainer: BlackEagle < ike DOT devolder AT gmail DOT com >
pkgname=vivaldi-snapshot-ffmpeg-codecs
pkgver=134.0.6998.178
_vivaldi_major_version=7.4
pkgrel=1
pkgdesc="additional support for proprietary codecs for vivaldi-snapshot"
arch=('x86_64')
url="https://ffmpeg.org/"
license=('LGPL2.1')
depends=('glibc')
makedepends=(
'gn' 'ninja' 'python' 'nss' 'libva' 'libxkbcommon'
)
source=(
"https://commondatastorage.googleapis.com/chromium-browser-official/chromium-$pkgver.tar.xz"
)
sha512sums=('0a46d9b925a0e93471949f584e00d3feca194726acd101afbdc4b63a2e9458d92ef1ae2e9dc08624d70c9cb434b77f856a3d379ea31e262b71b338ddae6546e8')
#prepare() {
#cd "$srcdir/chromium-$pkgver"
#}
_build_flags=(
'is_component_build=false'
'is_component_ffmpeg=true'
'use_sysroot=false'
'use_gtk=false'
'use_qt5=false'
'use_qt6=false'
'use_glib=false'
'use_cups=false'
'use_pangocairo=false'
)
_ffmpeg_build_flags=(
"ffmpeg_branding=\"ChromeOS\""
"proprietary_codecs=true"
"enable_platform_hevc=true"
"enable_platform_ac3_eac3_audio=true"
"enable_platform_mpeg_h_audio=true"
"enable_platform_dolby_vision=true"
"enable_mse_mpeg2ts_stream_parser=true"
)
build() {
cd "$srcdir/chromium-$pkgver"
# chromium clang and rust
python tools/clang/scripts/update.py
python tools/rust/update_rust.py
export PATH="${srcdir}/chromium-${pkgver}/third_party/llvm-build/Release+Asserts/bin:$PATH"
export CC="clang"
export CXX="clang++"
gn gen -v \
--fail-on-unused-args \
--args="${_build_flags[*]} ${_ffmpeg_build_flags[*]}" \
--script-executable=/usr/bin/python \
out/ffmpegso
ninja -C out/ffmpegso libffmpeg.so
}
package() {
cd "$srcdir/chromium-$pkgver"
install -Dm644 out/ffmpegso/libffmpeg.so \
"$pkgdir/opt/vivaldi-snapshot/libffmpeg.so.$_vivaldi_major_version"
}
# vim:set ts=2 sw=2 et:
|