wok view dooble/receipt @ rev 25341

amule: update to new libupnp API
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Jul 24 16:17:15 2022 +0000 (2022-07-24)
parents 5ea0ce1cecc0
children fe1b5660fdd1
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 current_version()
21 {
22 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
23 sed '/archive.*tar/!d;s|.*/\(.*\).tar.*|\1|;q'
24 }
26 # Rules to configure and make the package.
27 compile_rules()
28 {
29 srcdir="$src/1.x"
30 cd $srcdir &&
31 sed -i 's|local/dooble/do|bin/do|g' \
32 dooble.desktop
34 qmake PREFIX="/usr/" DESTDIR=$DESTDIR $PACKAGE.pro &&
35 make &&
37 mkdir -p $install/usr/bin
38 mkdir -p $install/usr/lib
39 mkdir -p $install/usr/share/$PACKAGE/Translations
41 mv $install/Dooble $install/usr/bin
42 cp -a $srcdir/dooble.sh $install/usr/bin
43 install $srcdir/libSpotOn/libspoton.so $install/usr/lib
44 cp -a $srcdir/Icons $install/usr/share/$PACKAGE
45 cp -a $srcdir/Translations/*.qm $install/usr/share/$PACKAGE/Translations
46 cp -a $srcdir/Archived/Plugins $install/usr/share/$PACKAGE
47 }
49 # Rules to gen a SliTaz package suitable for Tazpkg.
50 genpkg_rules()
51 {
52 cp -a $install/* $fs
54 cd $fs/usr/share/$PACKAGE &&
55 ln -s ../../bin/Dooble Dooble
57 cd $fs/usr/share/$PACKAGE/Icons &&
58 rm -rf 64x64 nuovext nuvola black-and-white &&
59 ln -s faience nuovext
61 cd $fs/usr/share/$PACKAGE/Translations
62 find . -size -44k -delete
64 # object program
65 sed -i 's|local/dooble/Dooble|bin/Dooble|g' \
66 $fs/usr/bin/$PACKAGE.sh
68 # shared files
69 sed -i 's|cd /usr/local/dooble|cd /usr/share/dooble|g' \
70 $fs/usr/bin/$PACKAGE.sh
72 sed -i 's/fusion/ /g' \
73 $fs/usr/bin/$PACKAGE.sh
75 cd $fs/usr/share/$PACKAGE &&
76 cat>'Dooble.ini' << EOT
77 [General]
78 iconSet=/usr/share/dooble/Icons/faience/configuration.cfg
79 desktopBackground=/usr/share/images/slitaz-background.jpg
81 [settingsWindow]
82 homeUrl=file:/usr/share/webhome/index.html
83 fixedWebFont="Fixed,10,-1,5,50,0,0,0,0,0"
84 p2pUrl=qrc:/search_c.html
85 showAuthentication=false
87 [mainWindow]
88 searchName=DuckDuckGo
89 EOT
91 chown -R root:root $fs
92 }
94 post_install()
95 {
96 for i in $(ls "$1/home" 2> /dev/null)
97 do
98 [ -f "$1/home/$i/.dooble/Dooble/Dooble.ini" ] &&
99 continue
100 mkdir -p "$1/home/$i/.dooble/Dooble"
101 cp "$1/usr/share/dooble/Dooble.ini" "$1/home/$i/.dooble/Dooble"
102 rm "$1/home/$i/.local/share/applications/dooble.desktop"
103 chroot "$1/" chown -R $(stat -c "%u.%g" "$1/home/$i") "/home/$i/.dooble"
104 done
105 }
107 post_remove()
108 {
109 echo -n "Removing configuration files..."
110 rm -rf /home/*/.dooble
111 status
112 }