wok-current rev 17130

Up QtWeb (git-fork)
author Xander Ziiryanoff <psychomaniak@xakep.ru>
date Tue Sep 09 13:58:22 2014 +0200 (2014-09-09)
parents 0fba2e6e887d
children fa553b7be984
files QtWeb/receipt
line diff
     1.1 --- a/QtWeb/receipt	Tue Sep 09 11:58:22 2014 +0200
     1.2 +++ b/QtWeb/receipt	Tue Sep 09 13:58:22 2014 +0200
     1.3 @@ -1,15 +1,16 @@
     1.4  # SliTaz package receipt.
     1.5  
     1.6  PACKAGE="QtWeb"
     1.7 -COMMIT="fffaddce36"
     1.8 +COMMIT="c7c4a47d81"
     1.9  VERSION=${COMMIT:0:4}
    1.10  CATEGORY="network"
    1.11 -SHORT_DESC="Lightweight, secure and fast Qt4 WebKit browser"
    1.12 +SHORT_DESC="Customizable Qt4 WebKit browser with opera-like gestures"
    1.13  MAINTAINER="psychomaniak@xakep.ru"
    1.14  LICENSE="GPL2"
    1.15  WEB_SITE="http://qtweb.googlecode.com/"
    1.16  TARBALL="$PACKAGE-$VERSION.tar.gz"
    1.17 -WGET_URL="https://github.com/magist3r/$PACKAGE/archive/$COMMIT.tar.gz"
    1.18 +#WGET_URL="https://github.com/magist3r/$PACKAGE/archive/fffaddce36.tar.gz"
    1.19 +WGET_URL="https://github.com/RomanChebotarev/$PACKAGE/archive/$COMMIT.tar.gz"
    1.20  
    1.21  DEPENDS="libQtWebkit libQtXml cacerts xdg-utils"
    1.22  BUILD_DEPENDS="wget cacerts qmake Qt4-dev"
    1.23 @@ -24,15 +25,18 @@
    1.24  	sed -i 's|http://www.qtweb.net/")|file:/usr/share/webhome/index.html")|g' \
    1.25  	settings.cpp browsermainwindow.cpp tabwidget.cpp
    1.26  	
    1.27 +	# sed -i 's/* 0.9;/* ;/' browsermainwindow.cpp
    1.28 +	
    1.29  	# Save profile to ~./config ; ~/.local/share/data instead of /tmp:
    1.30  	sed -i 's/unins000.exe/QtWeb/' browserapplication.cpp
    1.31 +	
    1.32  	RTOOLBAR="./data/defaultbookmarks.xbel"
    1.33  	sed -i '33d' $RTOOLBAR
    1.34 -	sed -i 33i\ '<bookmark href="http://slitaz.org/">' $RTOOLBAR
    1.35 -	sed -i 's/NTFS Disk Tools/SLITAZ/' $RTOOLBAR
    1.36 +	sed -i 33i\ '<bookmark href="http://root:root@tazpanel:82/pkgs.cgi?info=libQtWebkit-video">' $RTOOLBAR
    1.37 +	sed -i 's/NTFS Disk Tools/WebkitVideo/' $RTOOLBAR
    1.38  	sed -i "15,29d" $RTOOLBAR
    1.39  	
    1.40 -	qmake && make $MAKEFLAGS --silent
    1.41 +	qmake && sed -i 's/-O2/-Os/g' Makefile && make $MAKEFLAGS
    1.42  	mkdir -p $install
    1.43  	install $src/src/$PACKAGE $install/$PACKAGE
    1.44  	rm -rf  $src/src/$PACKAGE
    1.45 @@ -49,7 +53,34 @@
    1.46  Type=Application
    1.47  Name=QtWeb
    1.48  Exec=/usr/bin/QtWeb
    1.49 +Icon=browser
    1.50  Categories=Network;WebBrowser;
    1.51  EOT
    1.52  
    1.53  }
    1.54 +
    1.55 +post_install()
    1.56 +{
    1.57 +	cd $1/tmp ; cat>'QtWeb Internet Browser.conf' << EOT
    1.58 +[MainWindow]
    1.59 +downloadAudioVideo=true
    1.60 +style=Cleanlooks
    1.61 +home=file:/usr/share/webhome/index.html
    1.62 +ToolbarSize=80%
    1.63 +ShowTabbarWhenOneTab=true
    1.64 +[AddressBar]
    1.65 +showGoHome=true
    1.66 +showAppStyle=false
    1.67 +showPrivacyMode=false
    1.68 +showPreferences=true
    1.69 +showCompatibility=false
    1.70 +showDisableJavascript=true
    1.71 +EOT
    1.72 +
    1.73 +	for i in $(ls $1/home 2> /dev/null); do
    1.74 +		[ -f /home/$i/.config/QtWeb.NET/QtWeb\ Internet\ Browser.conf ] && continue
    1.75 +		mkdir -p $1/home/$i/.config/QtWeb.NET
    1.76 +		cp $1/tmp/QtWeb\ Internet\ Browser.conf $1/home/$i/.config/QtWeb.NET
    1.77 +		chroot $1/ chown -R $i.users /home/$i/.config/QtWeb.NET
    1.78 +	done
    1.79 +}