wok-next annotate QtWeb/receipt @ rev 17254
mc: patch syntax-hl,add subox launcher; pango: fix path
author | Xander Ziiryanoff <psychomaniak@xakep.ru> |
---|---|
date | Mon Oct 20 19:58:54 2014 +0200 (2014-10-20) |
parents | 17c84cd0c81a |
children | c2b42fe954b3 |
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" |
psychomaniak@17076 | 14 |
psychomaniak@17077 | 15 DEPENDS="libQtWebkit libQtXml cacerts xdg-utils" |
psychomaniak@17076 | 16 BUILD_DEPENDS="wget cacerts qmake Qt4-dev" |
psychomaniak@17077 | 17 SUGGESTED="libQtWebkit-video" |
psychomaniak@17076 | 18 |
psychomaniak@17076 | 19 # Rules to configure and make the package. |
psychomaniak@17076 | 20 compile_rules() |
psychomaniak@17076 | 21 { |
psychomaniak@17076 | 22 cd $src/src |
psychomaniak@17076 | 23 sed -i 's/static/shared/' QtWeb.pro |
psychomaniak@17076 | 24 sed -i 's/QTPLUGIN += qcncodecs qjpcodecs qkrcodecs qtwcodecs qico//' QtWeb.pro |
psychomaniak@17076 | 25 sed -i 's|http://www.qtweb.net/")|file:/usr/share/webhome/index.html")|g' \ |
psychomaniak@17076 | 26 settings.cpp browsermainwindow.cpp tabwidget.cpp |
psychomaniak@17076 | 27 |
psychomaniak@17130 | 28 # sed -i 's/* 0.9;/* ;/' browsermainwindow.cpp |
psychomaniak@17130 | 29 |
psychomaniak@17076 | 30 # Save profile to ~./config ; ~/.local/share/data instead of /tmp: |
psychomaniak@17076 | 31 sed -i 's/unins000.exe/QtWeb/' browserapplication.cpp |
psychomaniak@17130 | 32 |
psychomaniak@17076 | 33 RTOOLBAR="./data/defaultbookmarks.xbel" |
psychomaniak@17076 | 34 sed -i '33d' $RTOOLBAR |
psychomaniak@17130 | 35 sed -i 33i\ '<bookmark href="http://root:root@tazpanel:82/pkgs.cgi?info=libQtWebkit-video">' $RTOOLBAR |
psychomaniak@17130 | 36 sed -i 's/NTFS Disk Tools/WebkitVideo/' $RTOOLBAR |
psychomaniak@17076 | 37 sed -i "15,29d" $RTOOLBAR |
psychomaniak@17076 | 38 |
psychomaniak@17254 | 39 qmake && sed -i 's|-O2|'"$CFLAGS"'|g' Makefile && make $MAKEFLAGS |
psychomaniak@17076 | 40 mkdir -p $install |
psychomaniak@17076 | 41 install $src/src/$PACKAGE $install/$PACKAGE |
psychomaniak@17076 | 42 rm -rf $src/src/$PACKAGE |
psychomaniak@17076 | 43 } |
psychomaniak@17076 | 44 |
psychomaniak@17076 | 45 # Rules to gen a SliTaz package suitable for Tazpkg. |
psychomaniak@17076 | 46 genpkg_rules() |
psychomaniak@17076 | 47 { |
psychomaniak@17076 | 48 mkdir -p $fs/usr/bin $fs/usr/share/applications |
psychomaniak@17076 | 49 cp -f $install/* $fs/usr/bin |
psychomaniak@17076 | 50 cd $fs/usr/share/applications |
psychomaniak@17076 | 51 cat>'QtWeb.desktop' << EOT |
psychomaniak@17076 | 52 [Desktop Entry] |
psychomaniak@17076 | 53 Type=Application |
psychomaniak@17076 | 54 Name=QtWeb |
psychomaniak@17076 | 55 Exec=/usr/bin/QtWeb |
psychomaniak@17130 | 56 Icon=browser |
psychomaniak@17076 | 57 Categories=Network;WebBrowser; |
psychomaniak@17076 | 58 EOT |
psychomaniak@17076 | 59 |
psychomaniak@17076 | 60 } |
psychomaniak@17130 | 61 |
psychomaniak@17130 | 62 post_install() |
psychomaniak@17130 | 63 { |
psychomaniak@17130 | 64 cd $1/tmp ; cat>'QtWeb Internet Browser.conf' << EOT |
psychomaniak@17130 | 65 [MainWindow] |
psychomaniak@17130 | 66 downloadAudioVideo=true |
psychomaniak@17130 | 67 style=Cleanlooks |
psychomaniak@17130 | 68 home=file:/usr/share/webhome/index.html |
psychomaniak@17130 | 69 ToolbarSize=80% |
psychomaniak@17130 | 70 ShowTabbarWhenOneTab=true |
psychomaniak@17130 | 71 [AddressBar] |
psychomaniak@17130 | 72 showGoHome=true |
psychomaniak@17130 | 73 showAppStyle=false |
psychomaniak@17130 | 74 showPrivacyMode=false |
psychomaniak@17130 | 75 showPreferences=true |
psychomaniak@17130 | 76 showCompatibility=false |
psychomaniak@17130 | 77 showDisableJavascript=true |
psychomaniak@17254 | 78 [websettings] |
psychomaniak@17254 | 79 fixedFont=Monospace |
psychomaniak@17254 | 80 standardFont=Sans Serif |
psychomaniak@17130 | 81 EOT |
psychomaniak@17130 | 82 |
psychomaniak@17130 | 83 for i in $(ls $1/home 2> /dev/null); do |
psychomaniak@17130 | 84 [ -f /home/$i/.config/QtWeb.NET/QtWeb\ Internet\ Browser.conf ] && continue |
psychomaniak@17130 | 85 mkdir -p $1/home/$i/.config/QtWeb.NET |
psychomaniak@17130 | 86 cp $1/tmp/QtWeb\ Internet\ Browser.conf $1/home/$i/.config/QtWeb.NET |
pascal@17249 | 87 chroot $1/ chown -R $(stat -c "%u.%g" $1/home/$i) /home/$i/.config/QtWeb.NET |
psychomaniak@17130 | 88 done |
psychomaniak@17130 | 89 } |