wok-next view vivaldi/receipt @ rev 21017
Some maintenance
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Tue Oct 16 16:46:05 2018 +0300 (2018-10-16) |
parents | d2950281f122 |
children | d5aab818505e |
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/"
10 HOST_ARCH="i486 x86_64"
12 TARBALL="vivaldi-stable-$VERSION-1.${ARCH/i486/i386}.rpm"
13 WGET_URL="https://downloads.vivaldi.com/stable/$TARBALL"
15 compile_rules() {
16 mkdir -p $install
17 cp -a ./opt/ ./usr/ $install
19 # link icons
20 for size in 16 48; do
21 mkdir -p $install/usr/share/icons/hicolor/${size}x$size/apps
22 ln -s ../../../../../../opt/vivaldi/product_logo_$size.png \
23 $install/usr/share/icons/hicolor/${size}x$size/apps/vivaldi.png
24 done
26 # remome useless comments (after sdft)
27 sed -i '/^#/d' $install/usr/share/applications/vivaldi-stable.desktop
29 # suid sandbox
30 chmod 4755 $install/opt/vivaldi/vivaldi-sandbox
32 # extract license
33 mkdir -p $install/usr/share/licenses/$PACKAGE
34 sed '/<!DOCTYPE/,/<\/html>/!d' $src/opt/vivaldi/locales/en-US.pak \
35 | sed 's|.*<!DOCTYPE|<!DOCTYPE|' \
36 > $install/usr/share/licenses/$PACKAGE/EULA.html
37 }
39 genpkg_rules() {
40 copy opt/ usr/
41 DEPENDS="gconf alsa-lib atk cairo dbus expat fontconfig gdk-pixbuf glib \
42 gtk3 libcups nspr nss pango xorg-libX11 xorg-libXScrnSaver \
43 xorg-libXcomposite xorg-libXcursor xorg-libXdamage xorg-libXext \
44 xorg-libXfixes xorg-libXi xorg-libXrandr xorg-libXrender xorg-libXtst \
45 xorg-libxcb bash mesa"
46 TAGS="web-browser"
47 }