wok annotate QtWeb/receipt @ rev 17936

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