wok annotate QtWeb/receipt @ rev 21562
updated rspamd (0.9.10 -> 1.9.3)
author | Hans-G?nter Theisgen |
---|---|
date | Fri May 17 10:06:48 2019 +0100 (2019-05-17) |
parents | 486dbfc17892 |
children | b569b85b0fb9 |
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" |
pascal@20687 | 10 WEB_SITE="https://github.com/RomanChebotarev/QtWeb" |
psychomaniak@17076 | 11 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@20687 | 12 WGET_URL="$WEB_SITE/archive/$COMMIT.tar.gz" |
al@17501 | 13 TAGS="web-browser" |
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 { |
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 } |