wok-next view dooble/receipt @ rev 20418

Add mdiedit, xlunch
author Aleksej Bobylev <al.bobylev@gmail.com>
date Wed Jan 10 17:32:40 2018 +0200 (2018-01-10)
parents a31657918496
children d5aab818505e
line source
1 # SliTaz package receipt.
3 PACKAGE="dooble"
4 VERSION="1.56d"
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-${VERSION}-src.tar.gz"
13 DEPENDS="qt5 libgcrypt sqlite3 cacerts "
14 BUILD_DEPENDS="wget cacerts qt5-dev libgcrypt-dev sqlite3-dev qtwebkit"
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 srcdir="$src/Version 1.x" ; cd $srcdir
20 # find . -regex '.*\(win32\|osx64\|icns\).*' -exec ls -l {} \; -delete
21 sed -i 's|local/dooble/do|bin/do|g' dooble.desktop
22 qmake PREFIX="/usr/" ${PACKAGE}.qt5.pro
23 make && make INSTALL_ROOT=$install install
24 # rm -rf $install/usr/local/$PACKAGE/D${PACKAGE:1}
25 mkdir -p $install/usr/share $install/usr/bin $install/usr/lib
26 install $src/libSpotOn/libspoton.so $install/usr/lib
27 install $src/D${PACKAGE:1} $install/usr/bin
28 # rm -rf $srcdir/temp $srcdir/T* $srcdir/D${PACKAGE:1}
29 # mv $install/usr/local/$PACKAGE $install/usr/share/
30 # rm $install/usr/share/$PACKAGE/Icons/AxB/dooble.ico
31 # cd $install/usr/share/$PACKAGE && rm -rf Tab Images
32 }
34 # Rules to gen a SliTaz package suitable for Tazpkg.
35 genpkg_rules()
36 {
37 mkdir -p $fs/usr/bin $fs/usr/share/$PACKAGE
38 cp -a $src/D${PACKAGE:1} $fs/usr/bin
39 cp -a $src/libSpotOn/libspoton.so $fs/usr/lib
40 # cp -a $install/* $fs
41 # cd $fs/usr/share/$PACKAGE ; ln -s ../../bin/D${PACKAGE:1} D${PACKAGE:1}
42 # cd $fs/usr/share/$PACKAGE/Icons ; rm -rf 64x64 nuovext nuvola black-and-white && ln -s faience nuovext
43 # cd $fs/usr/share/$PACKAGE/Translations ; find . -size -44k -delete
44 # mv $fs/usr/share/$PACKAGE/$PACKAGE.sh $fs/usr/bin/ && cd $fs/usr/bin
45 # sed -i 's|local/dooble/Dooble|bin/Dooble|g' $PACKAGE.sh
46 # sed -i 's|cd /usr/local/dooble|cd /usr/share/dooble|g' $PACKAGE.sh
47 # sed -i 's/fusion/ /g' $PACKAGE.sh
48 cd $fs/usr/share/$PACKAGE ; cat>'Dooble.ini' << EOT
49 [General]
50 iconSet=/usr/share/dooble/Icons/faience/configuration.cfg
51 desktopBackground=/usr/share/images/slitaz-background.jpg
53 [settingsWindow]
54 homeUrl=file:/usr/share/webhome/index.html
55 fixedWebFont="Fixed,10,-1,5,50,0,0,0,0,0"
56 p2pUrl=qrc:/search_c.html
57 showAuthentication=false
59 [mainWindow]
60 searchName=DuckDuckGo
61 EOT
62 chown -R root:root $fs
63 }
65 post_install()
66 {
67 for i in $(ls "$1/home" 2> /dev/null); do
68 [ -f "$1/home/$i/.dooble/Dooble/Dooble.ini" ] && continue
69 mkdir -p "$1/home/$i/.dooble/Dooble"
70 cp "$1/usr/share/dooble/Dooble.ini" "$1/home/$i/.dooble/Dooble"
71 rm "$1/home/$i/.local/share/applications/dooble.desktop"
72 chroot "$1/" chown -R $(stat -c "%u.%g" "$1/home/$i") "/home/$i/.dooble"
73 done
74 }
76 post_remove()
77 {
78 echo -n "Removing configuration files..."
79 rm -rf /home/*/.dooble
80 status
81 }