wok-next annotate QtWeb/receipt @ rev 21683
updated glances (1.5.1 -> 3.1.4.1)
author | Hans-G?nter Theisgen |
---|---|
date | Mon Jun 29 15:35:41 2020 +0100 (2020-06-29) |
parents | d43bf7aae921 |
children |
rev | line source |
---|---|
psychomaniak@17076 | 1 # SliTaz package receipt. |
psychomaniak@17076 | 2 |
psychomaniak@17076 | 3 PACKAGE="QtWeb" |
psychomaniak@20071 | 4 COMMIT="5ba3e1c0cf22fba7bdfc97f14727843c11c9d556" |
al@21020 | 5 VERSION=${COMMIT:0:4} # FIXME |
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/" |
al@21020 | 11 |
psychomaniak@17076 | 12 TARBALL="$PACKAGE-$VERSION.tar.gz" |
psychomaniak@17130 | 13 #WGET_URL="https://github.com/magist3r/$PACKAGE/archive/fffaddce36.tar.gz" |
psychomaniak@17130 | 14 WGET_URL="https://github.com/RomanChebotarev/$PACKAGE/archive/$COMMIT.tar.gz" |
psychomaniak@17076 | 15 |
al@20513 | 16 BUILD_DEPENDS="qmake qt5-dev qtwebkit mesa-dev xorg-dev" |
psychomaniak@17076 | 17 |
al@21020 | 18 compile_rules() { |
psychomaniak@17076 | 19 cd $src/src |
psychomaniak@17076 | 20 sed -i 's/static/shared/' QtWeb.pro |
psychomaniak@17076 | 21 sed -i 's/QTPLUGIN += qcncodecs qjpcodecs qkrcodecs qtwcodecs qico//' QtWeb.pro |
psychomaniak@17076 | 22 sed -i 's|http://www.qtweb.net/")|file:/usr/share/webhome/index.html")|g' \ |
psychomaniak@17076 | 23 settings.cpp browsermainwindow.cpp tabwidget.cpp |
al@21020 | 24 |
al@21020 | 25 # sed -i 's|* 0.9;|* ;|' browsermainwindow.cpp |
psychomaniak@20082 | 26 sed 's|<QPrint|<QtPrintSupport/QPrint|' -i browsermainwindow.cpp savepdf.cpp |
psychomaniak@20075 | 27 |
psychomaniak@20086 | 28 export CXXFLAGS="$CXXFLAGS -std=gnu++98" |
psychomaniak@20086 | 29 |
al@21020 | 30 # Save profile to ~./config; ~/.local/share/data instead of /tmp: |
psychomaniak@17076 | 31 sed -i 's/unins000.exe/QtWeb/' browserapplication.cpp |
al@21020 | 32 |
psychomaniak@17076 | 33 RTOOLBAR="./data/defaultbookmarks.xbel" |
psychomaniak@17076 | 34 sed -i '33d' $RTOOLBAR |
psychomaniak@20082 | 35 sed -i 33i\ '<bookmark href="http://tazpanel:82/">' $RTOOLBAR |
psychomaniak@17130 | 36 sed -i 's/NTFS Disk Tools/WebkitVideo/' $RTOOLBAR |
psychomaniak@17076 | 37 sed -i "15,29d" $RTOOLBAR |
al@21020 | 38 |
al@21020 | 39 qmake && |
al@21020 | 40 sed -i 's|-O2|'"$CFLAGS"'|g' Makefile && |
al@21020 | 41 make $MAKEFLAGS || return 1 |
al@21020 | 42 |
psychomaniak@17076 | 43 mkdir -p $install |
psychomaniak@17076 | 44 install $src/src/$PACKAGE $install/$PACKAGE |
psychomaniak@17076 | 45 rm -rf $src/src/$PACKAGE |
psychomaniak@17076 | 46 } |
psychomaniak@17076 | 47 |
al@21020 | 48 genpkg_rules() { |
al@21020 | 49 mkdir -p $fs/usr/bin |
psychomaniak@17076 | 50 cp -f $install/* $fs/usr/bin |
al@21020 | 51 install -Dm644 $stuff/qtweb.desktop $fs/usr/share/applications/QtWeb.desktop |
al@21020 | 52 install -Dm644 $stuff/QtWeb\ Internet\ Browser.conf \ |
al@21020 | 53 $fs/etc/skel/.config/QtWeb.NET/QtWeb\ Internet\ Browser.conf |
al@21020 | 54 DEPENDS="qt5 cacerts" |
al@21020 | 55 TAGS="web-browser" |
psychomaniak@17076 | 56 } |
psychomaniak@17130 | 57 |
al@21020 | 58 post_install() { |
al@21020 | 59 for i in $(ls "$1/home" 2>/dev/null); do |
al@21020 | 60 [ -f "$1/home/$i/.config/QtWeb.NET/QtWeb Internet Browser.conf" ] && |
al@21020 | 61 continue |
psychomaniak@17130 | 62 |
pascal@18730 | 63 mkdir -p "$1/home/$i/.config/QtWeb.NET" |
al@21020 | 64 cp "$1/etc/skel/.config/QtWeb.NET/QtWeb Internet Browser.conf" \ |
al@21020 | 65 "$1/home/$i/.config/QtWeb.NET" |
al@21020 | 66 chroot "$1/" chown -R $(stat -c "%u.%g" "$1/home/$i") \ |
al@21020 | 67 "/home/$i/.config/QtWeb.NET" |
psychomaniak@17130 | 68 done |
psychomaniak@17130 | 69 } |