wok-next view QtWeb/receipt @ rev 21020
Cleaning is almost finished... I should proceed to upgrades.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Nov 02 14:15:08 2018 +0200 (2018-11-02) |
parents | d43bf7aae921 |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="QtWeb"
4 COMMIT="5ba3e1c0cf22fba7bdfc97f14727843c11c9d556"
5 VERSION=${COMMIT:0:4} # FIXME
6 CATEGORY="network"
7 SHORT_DESC="Customizable Qt4 WebKit browser with opera-like gestures"
8 MAINTAINER="psychomaniak@xakep.ru"
9 LICENSE="GPL2"
10 WEB_SITE="http://qtweb.googlecode.com/"
12 TARBALL="$PACKAGE-$VERSION.tar.gz"
13 #WGET_URL="https://github.com/magist3r/$PACKAGE/archive/fffaddce36.tar.gz"
14 WGET_URL="https://github.com/RomanChebotarev/$PACKAGE/archive/$COMMIT.tar.gz"
16 BUILD_DEPENDS="qmake qt5-dev qtwebkit mesa-dev xorg-dev"
18 compile_rules() {
19 cd $src/src
20 sed -i 's/static/shared/' QtWeb.pro
21 sed -i 's/QTPLUGIN += qcncodecs qjpcodecs qkrcodecs qtwcodecs qico//' QtWeb.pro
22 sed -i 's|http://www.qtweb.net/")|file:/usr/share/webhome/index.html")|g' \
23 settings.cpp browsermainwindow.cpp tabwidget.cpp
25 # sed -i 's|* 0.9;|* ;|' browsermainwindow.cpp
26 sed 's|<QPrint|<QtPrintSupport/QPrint|' -i browsermainwindow.cpp savepdf.cpp
28 export CXXFLAGS="$CXXFLAGS -std=gnu++98"
30 # Save profile to ~./config; ~/.local/share/data instead of /tmp:
31 sed -i 's/unins000.exe/QtWeb/' browserapplication.cpp
33 RTOOLBAR="./data/defaultbookmarks.xbel"
34 sed -i '33d' $RTOOLBAR
35 sed -i 33i\ '<bookmark href="http://tazpanel:82/">' $RTOOLBAR
36 sed -i 's/NTFS Disk Tools/WebkitVideo/' $RTOOLBAR
37 sed -i "15,29d" $RTOOLBAR
39 qmake &&
40 sed -i 's|-O2|'"$CFLAGS"'|g' Makefile &&
41 make $MAKEFLAGS || return 1
43 mkdir -p $install
44 install $src/src/$PACKAGE $install/$PACKAGE
45 rm -rf $src/src/$PACKAGE
46 }
48 genpkg_rules() {
49 mkdir -p $fs/usr/bin
50 cp -f $install/* $fs/usr/bin
51 install -Dm644 $stuff/qtweb.desktop $fs/usr/share/applications/QtWeb.desktop
52 install -Dm644 $stuff/QtWeb\ Internet\ Browser.conf \
53 $fs/etc/skel/.config/QtWeb.NET/QtWeb\ Internet\ Browser.conf
54 DEPENDS="qt5 cacerts"
55 TAGS="web-browser"
56 }
58 post_install() {
59 for i in $(ls "$1/home" 2>/dev/null); do
60 [ -f "$1/home/$i/.config/QtWeb.NET/QtWeb Internet Browser.conf" ] &&
61 continue
63 mkdir -p "$1/home/$i/.config/QtWeb.NET"
64 cp "$1/etc/skel/.config/QtWeb.NET/QtWeb Internet Browser.conf" \
65 "$1/home/$i/.config/QtWeb.NET"
66 chroot "$1/" chown -R $(stat -c "%u.%g" "$1/home/$i") \
67 "/home/$i/.config/QtWeb.NET"
68 done
69 }