[arch-commits] Commit in vivaldi/repos (community-x86_64 community-x86_64/PKGBUILD)
Ike Devolder
idevolder at archlinux.org
Thu Nov 5 19:22:43 UTC 2020
Date: Thursday, November 5, 2020 @ 19:22:43
Author: idevolder
Revision: 743383
archrelease: copy trunk to community-x86_64
Added:
vivaldi/repos/community-x86_64/
vivaldi/repos/community-x86_64/PKGBUILD
(from rev 743382, vivaldi/trunk/PKGBUILD)
----------+
PKGBUILD | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 52 insertions(+)
Copied: vivaldi/repos/community-x86_64/PKGBUILD (from rev 743382, vivaldi/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD (rev 0)
+++ community-x86_64/PKGBUILD 2020-11-05 19:22:43 UTC (rev 743383)
@@ -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"
+}
+
More information about the arch-commits
mailing list