wok view dooble/receipt @ rev 23876

Up dropbear (2020.80)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Jul 01 14:12:33 2020 +0000 (2020-07-01)
parents 486dbfc17892
children 5ea0ce1cecc0
line source
1 # SliTaz package receipt.
3 PACKAGE="dooble"
4 VERSION="2019.12.25"
5 CATEGORY="network"
6 SHORT_DESC="Private mode only (almost) worst Qt webkit browser. With builtin fm and xterm."
7 MAINTAINER="psychomaniak@xakep.ru"
8 LICENSE="BSD"
9 WEB_SITE="https://textbrowser.github.io/dooble"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="https://github.com/textbrowser/$PACKAGE/archive/$VERSION.tar.gz"
14 SUGGESTED="libQtWebkit-video"
15 DEPENDS="cacerts libgcrypt libQtCore libQtDBus libQtGui libQtNetwork
16 libQtScript libQtSql libQtWebkit libQtXml sqlite"
17 BUILD_DEPENDS="cacerts libgcrypt-dev qmake Qt4-dev sqlite-dev"
19 # Rules to configure and make the package.
20 compile_rules()
21 {
22 srcdir="$src/1.x"
23 cd $srcdir &&
24 sed -i 's|local/dooble/do|bin/do|g' \
25 dooble.desktop
27 qmake PREFIX="/usr/" DESTDIR=$DESTDIR $PACKAGE.pro &&
28 make &&
30 mkdir -p $install/usr/bin
31 mkdir -p $install/usr/lib
32 mkdir -p $install/usr/share/$PACKAGE/Translations
34 mv $install/Dooble $install/usr/bin
35 cp -a $srcdir/dooble.sh $install/usr/bin
36 install $srcdir/libSpotOn/libspoton.so $install/usr/lib
37 cp -a $srcdir/Icons $install/usr/share/$PACKAGE
38 cp -a $srcdir/Translations/*.qm $install/usr/share/$PACKAGE/Translations
39 cp -a $srcdir/Archived/Plugins $install/usr/share/$PACKAGE
40 }
42 # Rules to gen a SliTaz package suitable for Tazpkg.
43 genpkg_rules()
44 {
45 cp -a $install/* $fs
47 cd $fs/usr/share/$PACKAGE &&
48 ln -s ../../bin/Dooble Dooble
50 cd $fs/usr/share/$PACKAGE/Icons &&
51 rm -rf 64x64 nuovext nuvola black-and-white &&
52 ln -s faience nuovext
54 cd $fs/usr/share/$PACKAGE/Translations
55 find . -size -44k -delete
57 # object program
58 sed -i 's|local/dooble/Dooble|bin/Dooble|g' \
59 $fs/usr/bin/$PACKAGE.sh
61 # shared files
62 sed -i 's|cd /usr/local/dooble|cd /usr/share/dooble|g' \
63 $fs/usr/bin/$PACKAGE.sh
65 sed -i 's/fusion/ /g' \
66 $fs/usr/bin/$PACKAGE.sh
68 cd $fs/usr/share/$PACKAGE &&
69 cat>'Dooble.ini' << EOT
70 [General]
71 iconSet=/usr/share/dooble/Icons/faience/configuration.cfg
72 desktopBackground=/usr/share/images/slitaz-background.jpg
74 [settingsWindow]
75 homeUrl=file:/usr/share/webhome/index.html
76 fixedWebFont="Fixed,10,-1,5,50,0,0,0,0,0"
77 p2pUrl=qrc:/search_c.html
78 showAuthentication=false
80 [mainWindow]
81 searchName=DuckDuckGo
82 EOT
84 chown -R root:root $fs
85 }
87 post_install()
88 {
89 for i in $(ls "$1/home" 2> /dev/null)
90 do
91 [ -f "$1/home/$i/.dooble/Dooble/Dooble.ini" ] &&
92 continue
93 mkdir -p "$1/home/$i/.dooble/Dooble"
94 cp "$1/usr/share/dooble/Dooble.ini" "$1/home/$i/.dooble/Dooble"
95 rm "$1/home/$i/.local/share/applications/dooble.desktop"
96 chroot "$1/" chown -R $(stat -c "%u.%g" "$1/home/$i") "/home/$i/.dooble"
97 done
98 }
100 post_remove()
101 {
102 echo -n "Removing configuration files..."
103 rm -rf /home/*/.dooble
104 status
105 }