wok-current view dooble/receipt @ rev 24218
updated perl-http-cookies (6.08 -> 6.10)
author | Hans-G?nter Theisgen |
---|---|
date | Fri Dec 31 16:37:13 2021 +0100 (2021-12-31) |
parents | b560cb576d39 |
children | 429ffdcd660a |
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 current_version()
20 {
21 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
22 sed '/archive.*tar/!d;s|.*/\(.*\).tar.*|\1|;q'
23 }
25 # Rules to configure and make the package.
26 compile_rules()
27 {
28 srcdir="$src/1.x"
29 cd $srcdir &&
30 sed -i 's|local/dooble/do|bin/do|g' \
31 dooble.desktop
33 qmake PREFIX="/usr/" DESTDIR=$DESTDIR $PACKAGE.pro &&
34 make &&
36 mkdir -p $install/usr/bin
37 mkdir -p $install/usr/lib
38 mkdir -p $install/usr/share/$PACKAGE/Translations
40 mv $install/Dooble $install/usr/bin
41 cp -a $srcdir/dooble.sh $install/usr/bin
42 install $srcdir/libSpotOn/libspoton.so $install/usr/lib
43 cp -a $srcdir/Icons $install/usr/share/$PACKAGE
44 cp -a $srcdir/Translations/*.qm $install/usr/share/$PACKAGE/Translations
45 cp -a $srcdir/Archived/Plugins $install/usr/share/$PACKAGE
46 }
48 # Rules to gen a SliTaz package suitable for Tazpkg.
49 genpkg_rules()
50 {
51 cp -a $install/* $fs
53 cd $fs/usr/share/$PACKAGE &&
54 ln -s ../../bin/Dooble Dooble
56 cd $fs/usr/share/$PACKAGE/Icons &&
57 rm -rf 64x64 nuovext nuvola black-and-white &&
58 ln -s faience nuovext
60 cd $fs/usr/share/$PACKAGE/Translations
61 find . -size -44k -delete
63 # object program
64 sed -i 's|local/dooble/Dooble|bin/Dooble|g' \
65 $fs/usr/bin/$PACKAGE.sh
67 # shared files
68 sed -i 's|cd /usr/local/dooble|cd /usr/share/dooble|g' \
69 $fs/usr/bin/$PACKAGE.sh
71 sed -i 's/fusion/ /g' \
72 $fs/usr/bin/$PACKAGE.sh
74 cd $fs/usr/share/$PACKAGE &&
75 cat>'Dooble.ini' << EOT
76 [General]
77 iconSet=/usr/share/dooble/Icons/faience/configuration.cfg
78 desktopBackground=/usr/share/images/slitaz-background.jpg
80 [settingsWindow]
81 homeUrl=file:/usr/share/webhome/index.html
82 fixedWebFont="Fixed,10,-1,5,50,0,0,0,0,0"
83 p2pUrl=qrc:/search_c.html
84 showAuthentication=false
86 [mainWindow]
87 searchName=DuckDuckGo
88 EOT
90 chown -R root:root $fs
91 }
93 post_install()
94 {
95 for i in $(ls "$1/home" 2> /dev/null)
96 do
97 [ -f "$1/home/$i/.dooble/Dooble/Dooble.ini" ] &&
98 continue
99 mkdir -p "$1/home/$i/.dooble/Dooble"
100 cp "$1/usr/share/dooble/Dooble.ini" "$1/home/$i/.dooble/Dooble"
101 rm "$1/home/$i/.local/share/applications/dooble.desktop"
102 chroot "$1/" chown -R $(stat -c "%u.%g" "$1/home/$i") "/home/$i/.dooble"
103 done
104 }
106 post_remove()
107 {
108 echo -n "Removing configuration files..."
109 rm -rf /home/*/.dooble
110 status
111 }