From a6e6f92c9a7e40adee2824ac4546813d4c76ff83 Mon Sep 17 00:00:00 2001 From: Cory Sanin Date: Wed, 29 Oct 2025 10:10:36 -0500 Subject: [PATCH] [world] 'vivaldi-7.6.3797.63-1' add --- .artixlinux/Jenkinsfile | 3 + .artixlinux/pkgbase.yaml | 11 ++-- .artixlinux/srcinfo.yaml | 48 +++++++++++++++ 0001-add-support-for-user-flags.patch | 37 ++++++++++++ LICENSE | 12 ++++ LICENSES/0BSD.txt | 1 + PKGBUILD | 85 +++++++++++++++++++++++++++ REUSE.toml | 24 ++++++++ 8 files changed, 216 insertions(+), 5 deletions(-) create mode 100644 .artixlinux/Jenkinsfile create mode 100644 .artixlinux/srcinfo.yaml create mode 100644 0001-add-support-for-user-flags.patch create mode 100644 LICENSE create mode 120000 LICENSES/0BSD.txt create mode 100644 PKGBUILD create mode 100644 REUSE.toml diff --git a/.artixlinux/Jenkinsfile b/.artixlinux/Jenkinsfile new file mode 100644 index 0000000..d68bca2 --- /dev/null +++ b/.artixlinux/Jenkinsfile @@ -0,0 +1,3 @@ +@Library('artix-ci@orion') import org.artixlinux.RepoPackage + +PackagePipeline(new RepoPackage(this)) diff --git a/.artixlinux/pkgbase.yaml b/.artixlinux/pkgbase.yaml index 58265ba..0b0d7a9 100644 --- a/.artixlinux/pkgbase.yaml +++ b/.artixlinux/pkgbase.yaml @@ -1,11 +1,11 @@ --- team: world actions: - addRepo: null + addRepo: world removeRepo: null - triggersBuild: false + triggersBuild: true triggersRebuild: false - triggersRepoAdd: false + triggersRepoAdd: true triggersRepoRemove: false triggersNoCheck: false repos: @@ -30,8 +30,9 @@ repos: packages: [] debug: [] world: - version: null - packages: [] + version: 7.6.3797.63-1 + packages: + - vivaldi-7.6.3797.63-1-x86_64.pkg.tar.zst debug: [] lib32-goblins: version: null diff --git a/.artixlinux/srcinfo.yaml b/.artixlinux/srcinfo.yaml new file mode 100644 index 0000000..5c696db --- /dev/null +++ b/.artixlinux/srcinfo.yaml @@ -0,0 +1,48 @@ +--- +version: 7.6.3797.63-1 +pkgbase: + name: vivaldi + pkgdesc: An advanced browser made with the power user in mind. + pkgver: 7.6.3797.63 + pkgrel: 1 + url: https://vivaldi.com + arch: + - x86_64 + license: + - custom + makedepends: + - w3m + depends: + - alsa-lib + - at-spi2-core + - cairo + - libcups + - libxss + - nss + - pango + - ttf-font + - desktop-file-utils + - shared-mime-info + - hicolor-icon-theme + optdepends: + - 'vivaldi-ffmpeg-codecs: playback of proprietary video/audio' + - 'org.freedesktop.secrets: better secret storage in gnome-keyring or kwallet' + - 'libnotify: native notifications' + - 'pipewire: WebRTC desktop sharing under Wayland' + - 'gtk3: gtk3 integration' + - 'gtk4: for use with --gtk-version=4' + - 'qt5-base: qt5 integration' + - 'qt6-base: qt6 integration' + - 'upower: Battery Status API support' + options: + - '!strip' + - '!zipman' + source: + - https://downloads.vivaldi.com/stable/vivaldi-stable-7.6.3797.63-1.x86_64.rpm + - 0001-add-support-for-user-flags.patch + sha512sums: + - 679e42738c50fe48a14106bd4b4e44e5400715136f1f8f91277f7dd6b99c4b775f37013cd9af2b35d0b5a97d2a283ea47f876ec3f3c39595135b375cefd21a4b + - a9bdab0fb0f394af17d1b126bae2d0cdc55e63eaa6eaf36eb994735047d3d7bc5000d75ab930f74b76b283c5addefbd4e4e63c5e4f2908bd53c270e73641c19d +pkgname: + - name: vivaldi +# generated with artixpkg 0.37.4-1-any diff --git a/0001-add-support-for-user-flags.patch b/0001-add-support-for-user-flags.patch new file mode 100644 index 0000000..11e69a1 --- /dev/null +++ b/0001-add-support-for-user-flags.patch @@ -0,0 +1,37 @@ +From 68c2dec905a7c88895c458dd40708ab9989385cf Mon Sep 17 00:00:00 2001 +From: BlackEagle +Date: Wed, 19 Jan 2022 20:57:58 +0100 +Subject: [PATCH] add support for user flags + +Signed-off-by: BlackEagle +--- + vivaldi-stable | 9 ++++++++- + 1 file changed, 8 insertions(+), 1 deletion(-) + +diff --git a/vivaldi-stable b/vivaldi-stable +index 5b5f1bf..8e95859 100755 +--- a/vivaldi-stable ++++ b/vivaldi-stable +@@ -53,6 +53,13 @@ export CHROME_VERSION_EXTRA="stable" + # We don't want bug-buddy intercepting our crashes. http://crbug.com/24120 + export GNOME_DISABLE_CRASH_DIALOG=SET_BY_GOOGLE_CHROME + ++# Allow users to override command-line options ++XDG_CONFIG_HOME=${XDG_CONFIG_HOME:-$HOME/.config} ++VIVALDI_USER_FLAGS="" ++if [[ -f "$XDG_CONFIG_HOME/vivaldi-$CHROME_VERSION_EXTRA.conf" ]]; then ++ VIVALDI_USER_FLAGS="$(cat "$XDG_CONFIG_HOME/vivaldi-$CHROME_VERSION_EXTRA.conf" | sed -e '/^\s*#/d')" ++fi ++ + # Sanitize std{in,out,err} because they'll be shared with untrusted child + # processes (http://crbug.com/376567). + exec < /dev/null +@@ -60,4 +67,4 @@ exec > >(exec cat) + exec 2> >(exec cat >&2) + + # Note: exec -a below is a bashism. +-exec -a "$0" "$HERE/vivaldi-bin" "$@" ++exec -a "$0" "$HERE/vivaldi-bin" $VIVALDI_USER_FLAGS "$@" +-- +2.34.1 + diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..b87c5e4 --- /dev/null +++ b/LICENSE @@ -0,0 +1,12 @@ +Copyright Arch Linux Contributors + +Permission to use, copy, modify, and/or distribute this software for +any purpose with or without fee is hereby granted. + +THE SOFTWARE IS PROVIDED “AS IS” AND THE AUTHOR DISCLAIMS ALL +WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES +OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE +FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY +DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN +AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT +OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. diff --git a/LICENSES/0BSD.txt b/LICENSES/0BSD.txt new file mode 120000 index 0000000..ea5b606 --- /dev/null +++ b/LICENSES/0BSD.txt @@ -0,0 +1 @@ +../LICENSE \ No newline at end of file diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..f03ca2c --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,85 @@ +# Maintainer: Cory Sanin +# Contributor: BlackIkeEagle +# Contributor: TZ86 + +pkgname=vivaldi +_rpmversion=7.6.3797.63-1 +pkgver=7.6.3797.63 +pkgrel=1 +pkgdesc='An advanced browser made with the power user in mind.' +url="https://vivaldi.com" +options=(!strip !zipman) +license=('custom') +arch=('x86_64') +depends=( + 'alsa-lib' + 'at-spi2-core' + 'cairo' + 'libcups' + 'libxss' + 'nss' + 'pango' + 'ttf-font' + 'desktop-file-utils' + 'shared-mime-info' + 'hicolor-icon-theme' +) +makedepends=('w3m') +optdepends=( + 'vivaldi-ffmpeg-codecs: playback of proprietary video/audio' + 'org.freedesktop.secrets: better secret storage in gnome-keyring or kwallet' + 'libnotify: native notifications' + 'pipewire: WebRTC desktop sharing under Wayland' + 'gtk3: gtk3 integration' + 'gtk4: for use with --gtk-version=4' + 'qt5-base: qt5 integration' + 'qt6-base: qt6 integration' + 'upower: Battery Status API support' +) +source=("https://downloads.vivaldi.com/stable/vivaldi-stable-${_rpmversion}.x86_64.rpm" + '0001-add-support-for-user-flags.patch') +sha512sums=('679e42738c50fe48a14106bd4b4e44e5400715136f1f8f91277f7dd6b99c4b775f37013cd9af2b35d0b5a97d2a283ea47f876ec3f3c39595135b375cefd21a4b' + 'a9bdab0fb0f394af17d1b126bae2d0cdc55e63eaa6eaf36eb994735047d3d7bc5000d75ab930f74b76b283c5addefbd4e4e63c5e4f2908bd53c270e73641c19d') + +package() { + cp --parents -a {opt,usr/bin,usr/share} "$pkgdir" + + # add support for ~/.config/vivaldi-stable.conf + patch -p1 -i "$srcdir/0001-add-support-for-user-flags.patch" \ + "$pkgdir/opt/$pkgname/$pkgname" + # remove "orig" leftover if it is there + rm -f "$pkgdir/opt/$pkgname/$pkgname.orig" + + # suid sandbox + chmod 4755 "$pkgdir/opt/$pkgname/vivaldi-sandbox" + + install -dm755 "$pkgdir/usr/bin" + + # make /usr/bin/vivaldi-stable available + binf="$pkgdir/usr/bin/vivaldi-stable" + if [[ ! -e "$binf" ]] && [[ ! -f "$binf" ]] && [[ ! -L "$binf" ]]; then + ln -s /opt/vivaldi/vivaldi "$binf" + fi + # make /usr/bin/vivaldi available + binf="$pkgdir/usr/bin/vivaldi" + if [[ ! -e "$binf" ]] && [[ ! -f "$binf" ]] && [[ ! -L "$binf" ]]; then + ln -s /opt/vivaldi/vivaldi "$binf" + fi + + # Vivaldi has different design for each size of icons. Avoid using them. + install -d "$pkgdir/usr/share/pixmaps" + # TEMP hack, should be properly provided icon + ln -sf /opt/${pkgname}/resources/${pkgname}/resources/welcomepage-vivaldi.svg "$pkgdir/usr/share/pixmaps/${pkgname}.svg" + ln -sf /opt/${pkgname}/product_logo_256.png "$pkgdir/usr/share/pixmaps/${pkgname}.png" + + # license + install -dm755 "$pkgdir/usr/share/licenses/$pkgname" + w3m -dump "$pkgdir/opt/$pkgname/LICENSE.html" \ + | head -n 5 \ + > "$pkgdir/usr/share/licenses/$pkgname/license.txt" + + # https://archlinux.org/todo/legacy-path-for-metainfo-files/ + install -Dm644 "usr/share/appdata/$pkgname.appdata.xml" -t \ + "$pkgdir/usr/share/metainfo/" + rm -rv "$pkgdir/usr/share/appdata" +} diff --git a/REUSE.toml b/REUSE.toml new file mode 100644 index 0000000..abbb96e --- /dev/null +++ b/REUSE.toml @@ -0,0 +1,24 @@ +version = 1 + +[[annotations]] +path = [ + "PKGBUILD", + "README.md", + "keys/**", + ".SRCINFO", + ".nvchecker.toml", + "*.install", + "*.sysusers", + "*.tmpfiles", + "*.logrotate", + "*.pam", + "*.service", + "*.socket", + "*.timer", + "*.desktop", + "*.hook", + "0001-add-support-for-user-flags.patch", +] +SPDX-FileCopyrightText = "Arch Linux contributors" +SPDX-License-Identifier = "0BSD" +