wok-6.x view QtWeb/receipt @ rev 22108

updated vim-tiny again (7.3 -> 8.1.2237)
author Hans-G?nter Theisgen
date Fri Nov 01 16:44:12 2019 +0100 (2019-11-01)
parents 486dbfc17892
children b569b85b0fb9
line source
1 # SliTaz package receipt.
3 PACKAGE="QtWeb"
4 COMMIT="c7c4a47d81"
5 VERSION=${COMMIT:0:4}
6 CATEGORY="network"
7 SHORT_DESC="Customizable Qt4 WebKit browser with opera-like gestures"
8 MAINTAINER="psychomaniak@xakep.ru"
9 LICENSE="GPL2"
10 WEB_SITE="https://github.com/RomanChebotarev/QtWeb"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="$WEB_SITE/archive/$COMMIT.tar.gz"
13 TAGS="web-browser"
15 DEPENDS="libQtWebkit libQtXml cacerts xdg-utils"
16 BUILD_DEPENDS="wget cacerts qmake Qt4-dev"
17 SUGGESTED="libQtWebkit-video"
19 # Rules to configure and make the package.
20 compile_rules()
21 {
22 cd $src/src
23 sed -i 's/static/shared/' QtWeb.pro
24 sed -i 's/QTPLUGIN += qcncodecs qjpcodecs qkrcodecs qtwcodecs qico//' QtWeb.pro
25 sed -i 's|http://www.qtweb.net/")|file:/usr/share/webhome/index.html")|g' \
26 settings.cpp browsermainwindow.cpp tabwidget.cpp
28 # sed -i 's/* 0.9;/* ;/' browsermainwindow.cpp
30 # Save profile to ~./config ; ~/.local/share/data instead of /tmp:
31 sed -i 's/unins000.exe/QtWeb/' browserapplication.cpp
33 RTOOLBAR="./data/defaultbookmarks.xbel"
34 sed -i '33d' $RTOOLBAR
35 sed -i 33i\ '<bookmark href="http://root:root@tazpanel:82/pkgs.cgi?info=libQtWebkit-video">' $RTOOLBAR
36 sed -i 's/NTFS Disk Tools/WebkitVideo/' $RTOOLBAR
37 sed -i "15,29d" $RTOOLBAR
39 qmake && sed -i 's|-O2|'"$CFLAGS"'|g' Makefile && make $MAKEFLAGS
40 mkdir -p $install
41 install $src/src/$PACKAGE $install/$PACKAGE
42 rm -rf $src/src/$PACKAGE
43 }
45 # Rules to gen a SliTaz package suitable for Tazpkg.
46 genpkg_rules()
47 {
48 mkdir -p $fs/usr/bin $fs/usr/share/applications
49 cp -f $install/* $fs/usr/bin
50 cd $fs/usr/share/applications
51 cat>'QtWeb.desktop' << EOT
52 [Desktop Entry]
53 Type=Application
54 Name=QtWeb
55 Exec=/usr/bin/QtWeb
56 Icon=browser
57 Categories=Network;WebBrowser;
58 EOT
60 }
62 post_install()
63 {
64 cd "$1/tmp" ; cat>'QtWeb Internet Browser.conf' << EOT
65 [MainWindow]
66 downloadAudioVideo=true
67 style=Cleanlooks
68 home=file:/usr/share/webhome/index.html
69 ToolbarSize=80%
70 ShowTabbarWhenOneTab=true
71 [AddressBar]
72 showGoHome=true
73 showAppStyle=false
74 showPrivacyMode=false
75 showPreferences=true
76 showCompatibility=false
77 showDisableJavascript=true
78 EOT
80 for i in $(ls "$1/home" 2> /dev/null); do
81 [ -f "$1/home/$i/.config/QtWeb.NET/QtWeb Internet Browser.conf" ] && continue
82 mkdir -p "$1/home/$i/.config/QtWeb.NET"
83 cp "$1/tmp/QtWeb Internet Browser.conf" "$1/home/$i/.config/QtWeb.NET"
84 chroot "$1/" chown -R $(stat -c "%u.%g" "$1/home/$i") "/home/$i/.config/QtWeb.NET"
85 done
86 }