wok-current rev 17076
Add QtWeb
author | Xander Ziiryanoff <psychomaniak@xakep.ru> |
---|---|
date | Sun Aug 24 09:23:27 2014 +0200 (2014-08-24) |
parents | 522bd129061c |
children | 6e22e38e70da |
files | QtWeb/receipt |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/QtWeb/receipt Sun Aug 24 09:23:27 2014 +0200 1.3 @@ -0,0 +1,55 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="QtWeb" 1.7 +COMMIT="fffaddce36" 1.8 +VERSION=${COMMIT:0:4} 1.9 +CATEGORY="network" 1.10 +SHORT_DESC="Lightweight, secure and fast Qt4 WebKit browser" 1.11 +MAINTAINER="psychomaniak@xakep.ru" 1.12 +LICENSE="GPL2" 1.13 +WEB_SITE="http://qtweb.googlecode.com/" 1.14 +TARBALL="$PACKAGE-$VERSION.tar.gz" 1.15 +WGET_URL="https://github.com/magist3r/$PACKAGE/archive/$COMMIT.tar.gz" 1.16 + 1.17 +DEPENDS="libQtWebkit libQtXml" 1.18 +BUILD_DEPENDS="wget cacerts qmake Qt4-dev" 1.19 +SUGGESTS="libQtWebkit-video cacerts xdg-utils" 1.20 + 1.21 +# Rules to configure and make the package. 1.22 +compile_rules() 1.23 +{ 1.24 + cd $src/src 1.25 + sed -i 's/static/shared/' QtWeb.pro 1.26 + sed -i 's/QTPLUGIN += qcncodecs qjpcodecs qkrcodecs qtwcodecs qico//' QtWeb.pro 1.27 + sed -i 's|http://www.qtweb.net/")|file:/usr/share/webhome/index.html")|g' \ 1.28 + settings.cpp browsermainwindow.cpp tabwidget.cpp 1.29 + 1.30 + # Save profile to ~./config ; ~/.local/share/data instead of /tmp: 1.31 + sed -i 's/unins000.exe/QtWeb/' browserapplication.cpp 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 "15,29d" $RTOOLBAR 1.37 + 1.38 + qmake && make $MAKEFLAGS --silent 1.39 + mkdir -p $install 1.40 + install $src/src/$PACKAGE $install/$PACKAGE 1.41 + rm -rf $src/src/$PACKAGE 1.42 +} 1.43 + 1.44 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.45 +genpkg_rules() 1.46 +{ 1.47 + mkdir -p $fs/usr/bin $fs/usr/share/applications 1.48 + cp -f $install/* $fs/usr/bin 1.49 + cd $fs/usr/share/applications 1.50 + cat>'QtWeb.desktop' << EOT 1.51 +[Desktop Entry] 1.52 +Type=Application 1.53 +Name=QtWeb 1.54 +Exec=/usr/bin/QtWeb 1.55 +Categories=Network;WebBrowser; 1.56 +EOT 1.57 + 1.58 +}