diff options
Diffstat (limited to 'www-client')
-rw-r--r-- | www-client/vivaldi/Manifest | 4 | ||||
-rw-r--r-- | www-client/vivaldi/vivaldi-3.3.2022.30_p1.ebuild | 125 |
2 files changed, 129 insertions, 0 deletions
diff --git a/www-client/vivaldi/Manifest b/www-client/vivaldi/Manifest index 5f0491aeacdc..186590ff4829 100644 --- a/www-client/vivaldi/Manifest +++ b/www-client/vivaldi/Manifest @@ -6,3 +6,7 @@ DIST vivaldi-3.3.2022.26_p1-amd64.deb 72512136 BLAKE2B 387a811b51e37eb64c20ce2ad DIST vivaldi-3.3.2022.26_p1-arm64.deb 65262128 BLAKE2B 3bb054b3b6f0d1277ada57fe8276fc0c52f6fe714ff6980fab0f627d444ece747d49241793af29738bf9faf6f867f3d14e23db177aa88ccca24e8e2df425f77f SHA512 bf2b04ad731e3b123542aaf474d6a894dab6ee12100244714a7458c4704045f9c6b3ce60893414866633eb840fcc53b448f7fa30b325ad87d1f86b23fe2afc74 DIST vivaldi-3.3.2022.26_p1-armhf.deb 64322356 BLAKE2B ea6ab8146852a1625516bc165cf11abe907d626ead0641f6c5c8645b68a4dff171e4d8bc3611f6391b0d33009a7ebcffee9f7d67a7863fe0b9745427cff883be SHA512 5f8dd987599be53ad103da28a3e22b4a8eb783900ebbc59726abe4f731bfa3b29fa95a24c4cbba8b7b71157e31ec8ac4c1109cfbc12f9b8c47e36547823b5cd4 DIST vivaldi-3.3.2022.26_p1-i386.deb 70804172 BLAKE2B 73529fd2766c5d7db569f231e51b2a6cbddb4927e8f66a6b7d6e7814b32ac5ea1fdfb71da783712906fbd5210fa973afad3b08d5ad4eb7e22c001ac502b10da9 SHA512 26be9ba625ae03331ad42f4bf0219c9b05b8788ed5b107f1a571396ec21f5d14ab407219012fa5558827d967f7c66f7c3e49cfa3bcacd2140a8cc91c5d0e9b10 +DIST vivaldi-3.3.2022.30_p1-amd64.deb 72524060 BLAKE2B c92691cf22fb845583767d7dc98659ff4dc92fe515ff28da6594070190b95570c61cbd32446c778d9a1bf87fb698830b7ba8d04a74d32aefcb33b8eca678900c SHA512 2d64dde574d1c2ad5f0d998014f54b875dabc5ddc2f1259880a666dcc3251ee04b28dbd0cfc25876cec34bcb204a6f969044c4f721873a99e06cf904e5d8f045 +DIST vivaldi-3.3.2022.30_p1-arm64.deb 65265588 BLAKE2B 288e3e2a31a2873bfa94796304d45a96da3781093039c044ee9303b134bc5cd7ac331638a052e58e5dbb629ff9154f8912140dbbe7777416235844c2918a70f2 SHA512 70a6d096e9cc08348eb0a0c3a8d4157b4aea5f6b0bbedecafd2589dc0af8ae4c61f128a76335464da0f696b12c57fa42ae1e15b08cc0f12ce6108e6031f6ab72 +DIST vivaldi-3.3.2022.30_p1-armhf.deb 64302208 BLAKE2B 07b3fa9c9038cac66b294de8ee2234bcb070b2d36192b9d0cabbe116355b57e3a45c0ec93bb38feb99971de776eb6a1401e51b1bbaa61303ba6ddb0099714967 SHA512 38a47c229eba899e1a0963aa50f8929501d71444257b368e6d28ae0f6f8eb9fb7080eb0a268c673dad8270806f7cf0bede9c2e35516340f511e3d2e801d864e0 +DIST vivaldi-3.3.2022.30_p1-i386.deb 70816132 BLAKE2B 0a3c20d8bacf45d170b3dfb5fe4261be6584df2546149868b4d338e47cd2917886e838d6a911cfa7eb932dedee70c166a532fe5111fd19c8b58ca384a05288ec SHA512 e0a36322b17df21528f8307b7d299232920482c60c48fa9ab1d1718831ab61f3c349bf362163807c85147e4f4e4e79a32f061901db251d9538a25c30994b21d2 diff --git a/www-client/vivaldi/vivaldi-3.3.2022.30_p1.ebuild b/www-client/vivaldi/vivaldi-3.3.2022.30_p1.ebuild new file mode 100644 index 000000000000..a156328cef54 --- /dev/null +++ b/www-client/vivaldi/vivaldi-3.3.2022.30_p1.ebuild @@ -0,0 +1,125 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +CHROMIUM_LANGS=" + af am ar be bg bn ca cs da de de-CH el en-GB en-US eo es es-419 es-PE et eu + fa fi fil fr fy gd gl gu he hi hr hu hy id io is it ja jbo ka kn ko ku lt + lv mk ml mr ms nb nl nn pl pt-BR pt-PT ro ru sc sk sl sq sr sv sw ta te th + tr uk vi zh-CN zh-TW +" +inherit chromium-2 multilib unpacker toolchain-funcs xdg-utils + +#VIVALDI_BRANCH="snapshot" + +VIVALDI_PN="${PN}-${VIVALDI_BRANCH:-stable}" +VIVALDI_BIN="${PN}${VIVALDI_BRANCH/snapshot/-snapshot}" +VIVALDI_HOME="opt/${VIVALDI_BIN}" +DESCRIPTION="A browser for our friends" +HOMEPAGE="https://vivaldi.com/" +VIVALDI_BASE_URI="https://downloads.${PN}.com/${VIVALDI_BRANCH:-stable}/${VIVALDI_PN}_${PV/_p/-}_" +SRC_URI=" + amd64? ( ${VIVALDI_BASE_URI}amd64.deb -> ${P}-amd64.deb ) + arm64? ( ${VIVALDI_BASE_URI}arm64.deb -> ${P}-arm64.deb ) + arm? ( ${VIVALDI_BASE_URI}armhf.deb -> ${P}-armhf.deb ) + x86? ( ${VIVALDI_BASE_URI}i386.deb -> ${P}-i386.deb ) +" + +LICENSE="Vivaldi" +SLOT="0" +KEYWORDS="-* ~amd64 ~arm ~arm64 ~x86" +RESTRICT="bindist mirror" + +DEPEND=" + virtual/libiconv +" +RDEPEND=" + dev-libs/expat + dev-libs/glib:2 + dev-libs/nspr + dev-libs/nss + media-libs/alsa-lib + media-libs/fontconfig + media-libs/freetype + media-libs/speex + net-print/cups + sys-apps/dbus + sys-libs/libcap + x11-libs/cairo + x11-libs/gdk-pixbuf + x11-libs/gtk+:3 + x11-libs/libX11 + x11-libs/libXScrnSaver + x11-libs/libXcomposite + x11-libs/libXcursor + x11-libs/libXdamage + x11-libs/libXext + x11-libs/libXfixes + x11-libs/libXi + x11-libs/libXrandr + x11-libs/libXrender + x11-libs/libXtst + x11-libs/pango[X] +" +QA_PREBUILT="*" +S=${WORKDIR} + +src_unpack() { + unpack_deb ${A} +} + +src_prepare() { + iconv -c -t UTF-8 usr/share/applications/${VIVALDI_PN}.desktop > "${T}"/${VIVALDI_PN}.desktop || die + mv "${T}"/${VIVALDI_PN}.desktop usr/share/applications/${VIVALDI_PN}.desktop || die + + sed -i \ + -e "s|${VIVALDI_BIN}|${PN}|g" \ + usr/share/applications/${VIVALDI_PN}.desktop \ + usr/share/xfce4/helpers/${VIVALDI_BIN}.desktop || die + + mv usr/share/doc/${VIVALDI_PN} usr/share/doc/${PF} || die + chmod 0755 usr/share/doc/${PF} || die + + gunzip usr/share/doc/${PF}/changelog.gz || die + + rm \ + _gpgbuilder \ + etc/cron.daily/${VIVALDI_BIN} \ + || die + rmdir \ + etc/cron.daily/ \ + etc/ \ + || die + + local c d + for d in 16 22 24 32 48 64 128 256; do + mkdir -p usr/share/icons/hicolor/${d}x${d}/apps || die + cp \ + ${VIVALDI_HOME}/product_logo_${d}.png \ + usr/share/icons/hicolor/${d}x${d}/apps/${PN}.png || die + done + + pushd "${VIVALDI_HOME}/locales" > /dev/null || die + chromium_remove_language_paks + popd > /dev/null || die + + eapply_user +} + +src_install() { + rm -r usr/share/appdata || die + mv * "${D}" || die + dosym /${VIVALDI_HOME}/${PN} /usr/bin/${PN} + + fperms 4711 /${VIVALDI_HOME}/${PN}-sandbox +} + +pkg_postrm() { + xdg_desktop_database_update + xdg_icon_cache_update +} + +pkg_postinst() { + xdg_desktop_database_update + xdg_icon_cache_update +} |