wok-next annotate QtWeb/receipt @ rev 20071
Up qtweb, smtube, mesa-demos
author | Xander Ziiryanoff <psychomaniak@xakep.ru> |
---|---|
date | Wed Oct 25 03:40:58 2017 +0200 (2017-10-25) |
parents | 486dbfc17892 |
children | 418a5569720d |
rev | line source |
---|---|
psychomaniak@17076 | 1 # SliTaz package receipt. |
psychomaniak@17076 | 2 |
psychomaniak@17076 | 3 PACKAGE="QtWeb" |
psychomaniak@20071 | 4 COMMIT="5ba3e1c0cf22fba7bdfc97f14727843c11c9d556" |
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@20071 | 16 DEPENDS="qt5 cacerts " |
psychomaniak@20071 | 17 BUILD_DEPENDS="wget cacerts qmake qt5-dev qtwebkit" |
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 { |
pascal@18730 | 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@17130 | 78 EOT |
psychomaniak@17130 | 79 |
pascal@18730 | 80 for i in $(ls "$1/home" 2> /dev/null); do |
pascal@18816 | 81 [ -f "$1/home/$i/.config/QtWeb.NET/QtWeb Internet Browser.conf" ] && continue |
pascal@18730 | 82 mkdir -p "$1/home/$i/.config/QtWeb.NET" |
pascal@18730 | 83 cp "$1/tmp/QtWeb Internet Browser.conf" "$1/home/$i/.config/QtWeb.NET" |
pascal@18730 | 84 chroot "$1/" chown -R $(stat -c "%u.%g" "$1/home/$i") "/home/$i/.config/QtWeb.NET" |
psychomaniak@17130 | 85 done |
psychomaniak@17130 | 86 } |