wok-next view vivaldi/receipt @ rev 21020

Cleaning is almost finished... I should proceed to upgrades.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Nov 02 14:15:08 2018 +0200 (2018-11-02)
parents f48456621a9d
children 5669e8b3be70
line source
1 # SliTaz package receipt v2.
3 PACKAGE="vivaldi"
4 VERSION="1.12.955.48"
5 CATEGORY="network"
6 SHORT_DESC="An advanced browser made with the power user in mind"
7 MAINTAINER="al.bobylev@gmail.com"
8 LICENSE="custom"
9 WEB_SITE="https://vivaldi.com/"
11 TARBALL="vivaldi-stable-$VERSION-1.${ARCH/i486/i386}.rpm"
12 WGET_URL="https://downloads.vivaldi.com/stable/$TARBALL"
14 compile_rules() {
15 mkdir -p $install
16 cp -a ./opt/ ./usr/ $install
18 # link icons
19 for size in 16 48; do
20 mkdir -p $install/usr/share/icons/hicolor/${size}x$size/apps
21 ln -s ../../../../../../opt/vivaldi/product_logo_$size.png \
22 $install/usr/share/icons/hicolor/${size}x$size/apps/vivaldi.png
23 done
25 # remome useless comments (after sdft)
26 sed -i '/^#/d' $install/usr/share/applications/vivaldi-stable.desktop
28 # suid sandbox
29 chmod 4755 $install/opt/vivaldi/vivaldi-sandbox
31 # extract license
32 mkdir -p $install/usr/share/licenses/$PACKAGE
33 sed '/<!DOCTYPE/,/<\/html>/!d' $src/opt/vivaldi/locales/en-US.pak \
34 | sed 's|.*<!DOCTYPE|<!DOCTYPE|' \
35 > $install/usr/share/licenses/$PACKAGE/EULA.html
36 }
38 genpkg_rules() {
39 copy opt/ usr/
40 DEPENDS="gconf alsa-lib atk cairo dbus expat fontconfig gdk-pixbuf glib \
41 gtk3 libcups nspr nss pango xorg-libX11 xorg-libXScrnSaver \
42 xorg-libXcomposite xorg-libXcursor xorg-libXdamage xorg-libXext \
43 xorg-libXfixes xorg-libXi xorg-libXrandr xorg-libXrender xorg-libXtst \
44 xorg-libxcb bash mesa"
45 TAGS="web-browser"
46 }