[arch-commits] Commit in (8 files)

Ike Devolder idevolder at archlinux.org
Thu Nov 5 19:16:07 UTC 2020


    Date: Thursday, November 5, 2020 @ 19:16:07
  Author: idevolder
Revision: 743372

bring in vivaldi

Added:
  vivaldi-ffmpeg-codecs/
  vivaldi-ffmpeg-codecs/repos/
  vivaldi-ffmpeg-codecs/trunk/
  vivaldi-ffmpeg-codecs/trunk/PKGBUILD
  vivaldi/
  vivaldi/repos/
  vivaldi/trunk/
  vivaldi/trunk/PKGBUILD

--------------------------------------+
 vivaldi-ffmpeg-codecs/trunk/PKGBUILD |   65 +++++++++++++++++++++++++++++++++
 vivaldi/trunk/PKGBUILD               |   52 ++++++++++++++++++++++++++
 2 files changed, 117 insertions(+)

Added: vivaldi/trunk/PKGBUILD
===================================================================
--- vivaldi/trunk/PKGBUILD	                        (rev 0)
+++ vivaldi/trunk/PKGBUILD	2020-11-05 19:16:07 UTC (rev 743372)
@@ -0,0 +1,52 @@
+# Maintainer: BlackIkeEagle <ike DOT devolder AT gmail DOT com>
+# Contributor: TZ86
+
+pkgname=vivaldi
+_rpmversion=3.4.2066.94-1
+pkgver=3.4.2066.94
+pkgrel=2
+pkgdesc='An advanced browser made with the power user in mind.'
+url="https://vivaldi.com"
+options=(!strip !zipman)
+license=('custom')
+arch=('x86_64')
+depends=('gtk3' 'libcups' 'nss' 'alsa-lib' 'libxss' 'ttf-font' 'desktop-file-utils' 'shared-mime-info' 'hicolor-icon-theme')
+makedepends=('w3m')
+optdepends=(
+    'vivaldi-ffmpeg-codecs: playback of proprietary video/audio'
+    'pepper-flash: flash support'
+    'google-chrome: Widevine DRM Plugin'
+    'vivaldi-widevine: Widevine DRM Plugin'
+    'libnotify: native notifications'
+)
+source=("https://downloads.vivaldi.com/stable/vivaldi-stable-${_rpmversion}.x86_64.rpm")
+sha512sums=('2bd8722cd73da30a40ff46cfbde476a6a58827f9bf0053a52925026c46be6969f7de576f6aa013a815093f83798feba69a42bf20bfbaf065d965bd38d688ebd1')
+
+package() {
+    cp --parents -a {opt,usr/bin,usr/share} "$pkgdir"
+
+    # suid sandbox
+    chmod 4755 "$pkgdir/opt/$pkgname/vivaldi-sandbox"
+
+    # make /usr/bin/vivaldi-stable available
+    binf="$pkgdir/usr/bin/vivaldi-stable"
+    if [[ ! -e "$binf" ]] && [[ ! -f "$binf" ]] && [[ ! -L "$binf" ]]; then
+        install -dm755 "$pkgdir/usr/bin"
+        ln -s /opt/vivaldi/vivaldi "$binf"
+    fi
+
+    # install icons
+    for res in 16 22 24 32 48 64 128 256; do
+        install -Dm644 "$pkgdir/opt/$pkgname/product_logo_${res}.png" \
+            "$pkgdir/usr/share/icons/hicolor/${res}x${res}/apps/$pkgname.png"
+    done
+
+    # license
+    install -dm755 "$pkgdir/usr/share/licenses/$pkgname"
+    strings "$pkgdir/opt/vivaldi/locales/en-US.pak" \
+        | tr '\n' ' ' \
+        | sed -rne 's/.*(<html lang.*>.*html>).*/\1/p' \
+        | w3m -I 'utf-8' -T 'text/html' \
+        > "$pkgdir/usr/share/licenses/$pkgname/eula.txt"
+}
+

Added: vivaldi-ffmpeg-codecs/trunk/PKGBUILD
===================================================================
--- vivaldi-ffmpeg-codecs/trunk/PKGBUILD	                        (rev 0)
+++ vivaldi-ffmpeg-codecs/trunk/PKGBUILD	2020-11-05 19:16:07 UTC (rev 743372)
@@ -0,0 +1,65 @@
+# vim:set ft=sh:
+# Maintainer: BlackEagle < ike DOT devolder AT gmail DOT com >
+
+pkgname=vivaldi-ffmpeg-codecs
+pkgver=86.0.4240.185
+_vivaldi_major_version=3.4
+pkgrel=2
+pkgdesc="additional support for proprietary codecs for vivaldi"
+arch=('x86_64')
+url="https://ffmpeg.org/"
+license=('LGPL2.1')
+depends=('glibc')
+makedepends=(
+  'gtk3' 'libexif' 'libxss' 'ninja' 'nss' 'pciutils' 'python2' 'python'
+  'xdg-utils' 'gn'
+)
+options=('!strip')
+source=(
+  "https://commondatastorage.googleapis.com/chromium-browser-official/chromium-$pkgver.tar.xz"
+)
+sha512sums=('b31a8fbf6c5ea667cfdbd3568f2fb87c4942e424fa957d83125494b9eb923ffa1dbd258bbc51801d7920d70dd65bbf268b0afd08ed195cc5204126166095fe11')
+
+prepare() {
+  cd "$srcdir/chromium-$pkgver"
+
+  # Force script incompatible with Python 3 to use /usr/bin/python2
+  sed -i '1s|python$|&2|' third_party/dom_distiller_js/protoc_plugins/*.py
+
+  # Make xcbgen available to ui/gfx/x/gen_xproto.py running under Python 2
+  ln -s /usr/lib/python3.*/site-packages/xcbgen "$srcdir/"
+
+}
+
+build() {
+  cd "$srcdir/chromium-$pkgver"
+
+  python2 tools/clang/scripts/update.py
+
+  export PATH="${srcdir}/chromium-${pkgver}/third_party/llvm-build/Release+Asserts/bin:$PATH"
+
+  # ui/gfx/x/gen_xproto.py needs xcbgen
+  export PYTHONPATH=$srcdir
+
+  # error while loading shared libraries: libtinfo.so.5: cannot open shared object file: No such file or directory
+  ln -s /usr/lib/libtinfo.so.6 \
+    third_party/llvm-build/Release+Asserts/lib/libtinfo.so.5
+
+  export CC="clang"
+  export CXX="clang++"
+
+  local args="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 use_gnome_keyring=false use_sysroot=false use_gold=false linux_use_bundled_binutils=false treat_warnings_as_errors=false enable_nacl=false enable_nacl_nonsfi=false clang_use_chrome_plugins=true is_component_build=true is_debug=false symbol_level=0 use_custom_libcxx=true"
+
+  gn gen out/Release -v --args="$args" --script-executable=/usr/bin/python2
+
+  ninja -C out/Release -v media/ffmpeg
+}
+
+package() {
+  cd "$srcdir/chromium-$pkgver"
+
+	install -Dm644 out/Release/libffmpeg.so \
+    "$pkgdir/opt/vivaldi/libffmpeg.so.$_vivaldi_major_version"
+}
+
+# vim:set ts=2 sw=2 et:



More information about the arch-commits mailing list