wok annotate QtWeb/receipt @ rev 24910
Update some web_site (again)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Apr 09 14:32:04 2022 +0000 (2022-04-09) |
parents | 04434444ef20 |
children |
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 |
pascal@24308 | 19 # What is the latest version available today? |
pascal@24308 | 20 current_version() |
pascal@24308 | 21 { |
pascal@24308 | 22 wget -O - $WEB_SITE/tags 2>/dev/null | \ |
pascal@24308 | 23 sed '/archive.*tar/!d;s|.*/[A-Za-z_-]*\(.*\).tar.*|\1|;q' |
pascal@24308 | 24 } |
pascal@24308 | 25 |
psychomaniak@17076 | 26 # Rules to configure and make the package. |
psychomaniak@17076 | 27 compile_rules() |
psychomaniak@17076 | 28 { |
psychomaniak@17076 | 29 cd $src/src |
psychomaniak@17076 | 30 sed -i 's/static/shared/' QtWeb.pro |
psychomaniak@17076 | 31 sed -i 's/QTPLUGIN += qcncodecs qjpcodecs qkrcodecs qtwcodecs qico//' QtWeb.pro |
psychomaniak@17076 | 32 sed -i 's|http://www.qtweb.net/")|file:/usr/share/webhome/index.html")|g' \ |
psychomaniak@17076 | 33 settings.cpp browsermainwindow.cpp tabwidget.cpp |
psychomaniak@17076 | 34 |
psychomaniak@17130 | 35 # sed -i 's/* 0.9;/* ;/' browsermainwindow.cpp |
psychomaniak@17130 | 36 |
psychomaniak@17076 | 37 # Save profile to ~./config ; ~/.local/share/data instead of /tmp: |
psychomaniak@17076 | 38 sed -i 's/unins000.exe/QtWeb/' browserapplication.cpp |
psychomaniak@17130 | 39 |
psychomaniak@17076 | 40 RTOOLBAR="./data/defaultbookmarks.xbel" |
psychomaniak@17076 | 41 sed -i '33d' $RTOOLBAR |
psychomaniak@17130 | 42 sed -i 33i\ '<bookmark href="http://root:root@tazpanel:82/pkgs.cgi?info=libQtWebkit-video">' $RTOOLBAR |
psychomaniak@17130 | 43 sed -i 's/NTFS Disk Tools/WebkitVideo/' $RTOOLBAR |
psychomaniak@17076 | 44 sed -i "15,29d" $RTOOLBAR |
psychomaniak@17076 | 45 |
psychomaniak@17254 | 46 qmake && sed -i 's|-O2|'"$CFLAGS"'|g' Makefile && make $MAKEFLAGS |
psychomaniak@17076 | 47 mkdir -p $install |
psychomaniak@17076 | 48 install $src/src/$PACKAGE $install/$PACKAGE |
psychomaniak@17076 | 49 rm -rf $src/src/$PACKAGE |
psychomaniak@17076 | 50 } |
psychomaniak@17076 | 51 |
psychomaniak@17076 | 52 # Rules to gen a SliTaz package suitable for Tazpkg. |
psychomaniak@17076 | 53 genpkg_rules() |
psychomaniak@17076 | 54 { |
psychomaniak@17076 | 55 mkdir -p $fs/usr/bin $fs/usr/share/applications |
psychomaniak@17076 | 56 cp -f $install/* $fs/usr/bin |
psychomaniak@17076 | 57 cd $fs/usr/share/applications |
psychomaniak@17076 | 58 cat>'QtWeb.desktop' << EOT |
psychomaniak@17076 | 59 [Desktop Entry] |
psychomaniak@17076 | 60 Type=Application |
psychomaniak@17076 | 61 Name=QtWeb |
psychomaniak@17076 | 62 Exec=/usr/bin/QtWeb |
psychomaniak@17130 | 63 Icon=browser |
psychomaniak@17076 | 64 Categories=Network;WebBrowser; |
psychomaniak@17076 | 65 EOT |
psychomaniak@17076 | 66 |
psychomaniak@17076 | 67 } |
psychomaniak@17130 | 68 |
psychomaniak@17130 | 69 post_install() |
psychomaniak@17130 | 70 { |
pascal@18730 | 71 cd "$1/tmp" ; cat>'QtWeb Internet Browser.conf' << EOT |
psychomaniak@17130 | 72 [MainWindow] |
psychomaniak@17130 | 73 downloadAudioVideo=true |
psychomaniak@17130 | 74 style=Cleanlooks |
psychomaniak@17130 | 75 home=file:/usr/share/webhome/index.html |
psychomaniak@17130 | 76 ToolbarSize=80% |
psychomaniak@17130 | 77 ShowTabbarWhenOneTab=true |
psychomaniak@17130 | 78 [AddressBar] |
psychomaniak@17130 | 79 showGoHome=true |
psychomaniak@17130 | 80 showAppStyle=false |
psychomaniak@17130 | 81 showPrivacyMode=false |
psychomaniak@17130 | 82 showPreferences=true |
psychomaniak@17130 | 83 showCompatibility=false |
psychomaniak@17130 | 84 showDisableJavascript=true |
psychomaniak@17130 | 85 EOT |
psychomaniak@17130 | 86 |
pascal@18730 | 87 for i in $(ls "$1/home" 2> /dev/null); do |
pascal@18816 | 88 [ -f "$1/home/$i/.config/QtWeb.NET/QtWeb Internet Browser.conf" ] && continue |
pascal@18730 | 89 mkdir -p "$1/home/$i/.config/QtWeb.NET" |
pascal@18730 | 90 cp "$1/tmp/QtWeb Internet Browser.conf" "$1/home/$i/.config/QtWeb.NET" |
pascal@18730 | 91 chroot "$1/" chown -R $(stat -c "%u.%g" "$1/home/$i") "/home/$i/.config/QtWeb.NET" |
psychomaniak@17130 | 92 done |
psychomaniak@17130 | 93 } |