archrelease: copy trunk to community-any
[arch-community.git] / vivaldi-ffmpeg-codecs / trunk / PKGBUILD
blobb43935bef54ddaa78c5807ef4b88b682716321e6
1 # vim:set ft=sh:
2 # Maintainer: BlackEagle < ike DOT devolder AT gmail DOT com >
4 pkgname=vivaldi-ffmpeg-codecs
5 pkgver=110.0.5481.100
6 _vivaldi_major_version=6.0
7 pkgrel=2
8 pkgdesc="additional support for proprietary codecs for vivaldi"
9 arch=('x86_64')
10 url="https://ffmpeg.org/"
11 license=('LGPL2.1')
12 depends=('glibc')
13 makedepends=(
14   'gn' 'ninja' 'python' 'gtk3' 'nss' 'libva'
16 source=(
17   "https://commondatastorage.googleapis.com/chromium-browser-official/chromium-$pkgver.tar.xz"
19 sha512sums=('d2fbc32db2995335c86548edb4e5e5967df23d4e9648417cec72f8facadc7a7c96e4c1c528dd330dbe185140e7c4ecb9ec28494d87cbc8b4def460f10fde412c')
21 #prepare() {
22   #cd "$srcdir/chromium-$pkgver"
25 _build_flags=(
26   'is_component_build=false'
27   'is_component_ffmpeg=true'
28   'use_sysroot=false'
29   'use_gnome_keyring=false'
30   'use_qt=false'
33 _ffmpeg_build_flags=(
34   "ffmpeg_branding=\"ChromeOS\""
35   "proprietary_codecs=true"
36   "enable_platform_hevc=true"
37   "enable_platform_ac3_eac3_audio=true"
38   "enable_platform_mpeg_h_audio=true"
39   "enable_platform_dolby_vision=true"
40   "enable_mse_mpeg2ts_stream_parser=true"
42 build() {
43   cd "$srcdir/chromium-$pkgver"
45   # chromium clang
46   python tools/clang/scripts/update.py
47   export PATH="${srcdir}/chromium-${pkgver}/third_party/llvm-build/Release+Asserts/bin:$PATH"
49   export CC="clang"
50   export CXX="clang++"
52   gn gen -v \
53     --fail-on-unused-args \
54     --args="${_build_flags[*]} ${_ffmpeg_build_flags[*]}" \
55     --script-executable=/usr/bin/python \
56     out/ffmpegso
58   ninja -C out/ffmpegso libffmpeg.so
61 package() {
62   cd "$srcdir/chromium-$pkgver"
64   install -Dm644 out/ffmpegso/libffmpeg.so \
65     "$pkgdir/opt/vivaldi/libffmpeg.so.$_vivaldi_major_version"
68 # vim:set ts=2 sw=2 et: