blob: ce8af813f682e12078385b5f8de1d68f3157f7ba (
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
|
# vim:set ft=sh:
# Maintainer: BlackEagle < ike DOT devolder AT gmail DOT com >
pkgname=vivaldi-snapshot-ffmpeg-codecs
pkgver=130.0.6723.19
_vivaldi_major_version=6.10
pkgrel=1
pkgdesc="additional support for proprietary codecs for vivaldi"
arch=('x86_64')
url="https://ffmpeg.org/"
license=('LGPL2.1')
depends=('glibc')
makedepends=(
'gn' 'ninja' 'python' 'gtk3' 'nss' 'libva' 'libevdev'
)
source=(
"https://commondatastorage.googleapis.com/chromium-browser-official/chromium-$pkgver.tar.xz"
)
sha512sums=('a8293b4a38db6082d18acb517e39c716d58d184325358bf4f9b7bf9bb9ea23ab7bbaa4fc780cdafa9b91356df4bf4e6ac6dec020e4bc4de7928afa63b473b8f9')
#prepare() {
#cd "$srcdir/chromium-$pkgver"
#}
_build_flags=(
'is_component_build=false'
'is_component_ffmpeg=true'
'use_sysroot=false'
'use_qt=false'
'use_glib=false'
'ozone_platform_x11=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:
|