wok view dooble/receipt @ rev 19392

Up vmtouch (1.1.0)
author Paul Issott <paul@slitaz.org>
date Sat Aug 27 20:53:04 2016 +0100 (2016-08-27)
parents 9e01bc6321ea
children b560cb576d39
line source
1 # SliTaz package receipt.
3 PACKAGE="dooble"
4 VERSION="1.48"
5 CATEGORY="network"
6 SHORT_DESC="Private mode only (almost) worst Qt webkit browser. With builtin fm & xterm."
7 MAINTAINER="psychomaniak@xakep.ru"
8 LICENSE="BSD"
9 WEB_SITE="http://dooble.sourceforge.net"
10 TARBALL="$PACKAGE-$VERSION.tar.gz"
11 WGET_URL="$SF_MIRROR/$PACKAGE/files/Dooble.d.tar.gz"
13 DEPENDS="libQtCore libQtDBus libQtGui libQtNetwork libQtScript libQtSql \
14 libQtXml libgcrypt sqlite cacerts libQtWebkit"
15 BUILD_DEPENDS="wget cacerts Qt4-dev qmake libgcrypt-dev sqlite-dev"
16 SUGGESTED="libQtWebkit-video"
18 # Rules to configure and make the package.
19 compile_rules()
20 {
21 srcdir="$src/trunk/browser" ; cd $srcdir
22 find . -regex '.*\(win32\|osx64\|icns\).*' -exec ls -l {} \; -delete
23 sed -i 's|local/dooble/do|bin/do|g' dooble.desktop
24 qmake PREFIX="/usr/" $PACKAGE.pro
25 make && make INSTALL_ROOT=$install install
26 rm -rf $install/usr/local/$PACKAGE/D${PACKAGE:1}
27 mkdir -p $install/usr/share $install/usr/bin $install/usr/lib
28 install $srcdir/libSpotOn/libspoton.so $install/usr/lib
29 install $srcdir/D${PACKAGE:1} $install/usr/bin
30 rm -rf $srcdir/temp $srcdir/T* $srcdir/D${PACKAGE:1}
31 mv $install/usr/local/$PACKAGE $install/usr/share/
32 rm $install/usr/share/$PACKAGE/Icons/AxB/dooble.ico
33 cd $install/usr/share/$PACKAGE && rm -rf Tab Images
34 }
36 # Rules to gen a SliTaz package suitable for Tazpkg.
37 genpkg_rules()
38 {
39 cp -a $install/* $fs ; rm -rf $fs/home $fs/usr/local
40 cd $fs/usr/share/$PACKAGE ; ln -s ../../bin/D${PACKAGE:1} D${PACKAGE:1}
41 cd $fs/usr/share/$PACKAGE/Icons ; rm -rf 64x64 nuovext nuvola black-and-white && ln -s faience nuovext
42 cd $fs/usr/share/$PACKAGE/Translations ; find . -size -44k -delete
43 mv $fs/usr/share/$PACKAGE/$PACKAGE.sh $fs/usr/bin/ && cd $fs/usr/bin
44 sed -i 's|local/dooble/Dooble|bin/Dooble|g' $PACKAGE.sh
45 sed -i 's|cd /usr/local/dooble|cd /usr/share/dooble|g' $PACKAGE.sh
46 sed -i 's/fusion/ /g' $PACKAGE.sh
47 cd $fs/usr/share/$PACKAGE ; cat>'Dooble.ini' << EOT
48 [General]
49 iconSet=/usr/share/dooble/Icons/faience/configuration.cfg
50 desktopBackground=/usr/share/images/slitaz-background.jpg
52 [settingsWindow]
53 homeUrl=file:/usr/share/webhome/index.html
54 fixedWebFont="Fixed,10,-1,5,50,0,0,0,0,0"
55 p2pUrl=qrc:/search_c.html
56 showAuthentication=false
58 [mainWindow]
59 searchName=DuckDuckGo
60 EOT
61 chown -R root:root $fs
62 }
64 post_install()
65 {
66 for i in $(ls "$1/home" 2> /dev/null); do
67 [ -f "$1/home/$i/.dooble/Dooble/Dooble.ini" ] && continue
68 mkdir -p "$1/home/$i/.dooble/Dooble"
69 cp "$1/usr/share/dooble/Dooble.ini" "$1/home/$i/.dooble/Dooble"
70 rm "$1/home/$i/.local/share/applications/dooble.desktop"
71 chroot "$1/" chown -R $(stat -c "%u.%g" "$1/home/$i") "/home/$i/.dooble"
72 done
73 }
75 post_remove()
76 {
77 echo -n "Removing configuration files..."
78 rm -rf /home/*/.dooble
79 status
80 }