wok view dooble/receipt @ rev 25694

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