wok-current annotate QtWeb/receipt @ rev 17077
QtWeb: /suggests/suggested/, move to deps
author | Xander Ziiryanoff <psychomaniak@xakep.ru> |
---|---|
date | Sun Aug 24 09:53:06 2014 +0200 (2014-08-24) |
parents | d15afa7b34d8 |
children | 57ae1417abea |
rev | line source |
---|---|
psychomaniak@17076 | 1 # SliTaz package receipt. |
psychomaniak@17076 | 2 |
psychomaniak@17076 | 3 PACKAGE="QtWeb" |
psychomaniak@17076 | 4 COMMIT="fffaddce36" |
psychomaniak@17076 | 5 VERSION=${COMMIT:0:4} |
psychomaniak@17076 | 6 CATEGORY="network" |
psychomaniak@17076 | 7 SHORT_DESC="Lightweight, secure and fast Qt4 WebKit browser" |
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@17076 | 12 WGET_URL="https://github.com/magist3r/$PACKAGE/archive/$COMMIT.tar.gz" |
psychomaniak@17076 | 13 |
psychomaniak@17077 | 14 DEPENDS="libQtWebkit libQtXml cacerts xdg-utils" |
psychomaniak@17076 | 15 BUILD_DEPENDS="wget cacerts qmake Qt4-dev" |
psychomaniak@17077 | 16 SUGGESTED="libQtWebkit-video" |
psychomaniak@17076 | 17 |
psychomaniak@17076 | 18 # Rules to configure and make the package. |
psychomaniak@17076 | 19 compile_rules() |
psychomaniak@17076 | 20 { |
psychomaniak@17076 | 21 cd $src/src |
psychomaniak@17076 | 22 sed -i 's/static/shared/' QtWeb.pro |
psychomaniak@17076 | 23 sed -i 's/QTPLUGIN += qcncodecs qjpcodecs qkrcodecs qtwcodecs qico//' QtWeb.pro |
psychomaniak@17076 | 24 sed -i 's|http://www.qtweb.net/")|file:/usr/share/webhome/index.html")|g' \ |
psychomaniak@17076 | 25 settings.cpp browsermainwindow.cpp tabwidget.cpp |
psychomaniak@17076 | 26 |
psychomaniak@17076 | 27 # Save profile to ~./config ; ~/.local/share/data instead of /tmp: |
psychomaniak@17076 | 28 sed -i 's/unins000.exe/QtWeb/' browserapplication.cpp |
psychomaniak@17076 | 29 RTOOLBAR="./data/defaultbookmarks.xbel" |
psychomaniak@17076 | 30 sed -i '33d' $RTOOLBAR |
psychomaniak@17076 | 31 sed -i 33i\ '<bookmark href="http://slitaz.org/">' $RTOOLBAR |
psychomaniak@17076 | 32 sed -i 's/NTFS Disk Tools/SLITAZ/' $RTOOLBAR |
psychomaniak@17076 | 33 sed -i "15,29d" $RTOOLBAR |
psychomaniak@17076 | 34 |
psychomaniak@17076 | 35 qmake && make $MAKEFLAGS --silent |
psychomaniak@17076 | 36 mkdir -p $install |
psychomaniak@17076 | 37 install $src/src/$PACKAGE $install/$PACKAGE |
psychomaniak@17076 | 38 rm -rf $src/src/$PACKAGE |
psychomaniak@17076 | 39 } |
psychomaniak@17076 | 40 |
psychomaniak@17076 | 41 # Rules to gen a SliTaz package suitable for Tazpkg. |
psychomaniak@17076 | 42 genpkg_rules() |
psychomaniak@17076 | 43 { |
psychomaniak@17076 | 44 mkdir -p $fs/usr/bin $fs/usr/share/applications |
psychomaniak@17076 | 45 cp -f $install/* $fs/usr/bin |
psychomaniak@17076 | 46 cd $fs/usr/share/applications |
psychomaniak@17076 | 47 cat>'QtWeb.desktop' << EOT |
psychomaniak@17076 | 48 [Desktop Entry] |
psychomaniak@17076 | 49 Type=Application |
psychomaniak@17076 | 50 Name=QtWeb |
psychomaniak@17076 | 51 Exec=/usr/bin/QtWeb |
psychomaniak@17076 | 52 Categories=Network;WebBrowser; |
psychomaniak@17076 | 53 EOT |
psychomaniak@17076 | 54 |
psychomaniak@17076 | 55 } |