Advertisement
Guest User

Untitled

a guest
Mar 19th, 2024
21
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.76 KB | None | 0 0
  1. # vim:set ft=sh:
  2. # Maintainer: BlackEagle < ike DOT devolder AT gmail DOT com >
  3.  
  4. pkgname=opera-ffmpeg-codecs
  5. pkgver=122.0.6261.112
  6. pkgrel=1
  7. pkgdesc="additional support for proprietary codecs for opera"
  8. arch=('x86_64')
  9. url="https://ffmpeg.org/"
  10. license=('LGPL2.1')
  11. depends=('glibc')
  12. makedepends=(
  13. 'gn' 'ninja' 'python' 'gtk3' 'nss' 'libva' 'libevdev'
  14. )
  15. source=(
  16. "https://commondatastorage.googleapis.com/chromium-browser-official/chromium-$pkgver.tar.xz"
  17. )
  18. sha512sums=('993217d58515e590d11bf089ea744ad622ef50c1f995fcdbf04edffc75d36da2f3493b84fe7629f9ef2b8bfab0a67a334adb9d0ce4cbe8082c383ce1e24842c9')
  19.  
  20. #prepare() {
  21. #cd "$srcdir/chromium-$pkgver"
  22. #}
  23.  
  24. _build_flags=(
  25. 'is_component_build=false'
  26. 'is_component_ffmpeg=true'
  27. 'use_sysroot=false'
  28. 'use_qt=false'
  29. 'use_glib=false'
  30. 'ozone_platform_x11=false'
  31. )
  32.  
  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"
  41. )
  42. build() {
  43. cd "$srcdir/chromium-$pkgver"
  44.  
  45. # chromium clang
  46. python tools/clang/scripts/update.py
  47. python tools/rust/update_rust.py
  48. export PATH="${srcdir}/chromium-${pkgver}/third_party/llvm-build/Release+Asserts/bin:$PATH"
  49.  
  50. export CC="clang"
  51. export CXX="clang++"
  52.  
  53. gn gen -v \
  54. --fail-on-unused-args \
  55. --args="${_build_flags[*]} ${_ffmpeg_build_flags[*]}" \
  56. --script-executable=/usr/bin/python \
  57. out/ffmpegso
  58.  
  59. ninja -C out/ffmpegso libffmpeg.so
  60. }
  61.  
  62. package() {
  63. cd "$srcdir/chromium-$pkgver"
  64.  
  65. install -Dm644 out/ffmpegso/libffmpeg.so \
  66. "$pkgdir/usr/lib/opera/lib_extra/libffmpeg.so"
  67. }
  68.  
  69. # vim:set ts=2 sw=2 et:
  70.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement