wok-next view vivaldi/receipt @ rev 20236
linux-cloop: tiny patch
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Nov 06 10:18:18 2017 +0100 (2017-11-06) |
parents | c46076e02bcc |
children | c0521c689857 |
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.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 gtk+3 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 mesa17"
45 TAGS="web-browser"
46 }