wok-next view dooble/receipt @ rev 20078
Add qtstyleplugins
author | Xander Ziiryanoff <psychomaniak@xakep.ru> |
---|---|
date | Wed Oct 25 11:19:15 2017 +0200 (2017-10-25) |
parents | d69dcf6fcb1c |
children | 09e6af9cb070 |
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 sqlite cacerts "
14 BUILD_DEPENDS="wget cacerts qt5-dev libgcrypt-dev sqlite-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 $srcdir/libSpotOn/libspoton.so $install/usr/lib
27 install $srcdir/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 $install/* $fs
40 # cd $fs/usr/share/$PACKAGE ; ln -s ../../bin/D${PACKAGE:1} D${PACKAGE:1}
41 # cd $fs/usr/share/$PACKAGE/Icons ; rm -rf 64x64 nuovext nuvola black-and-white && ln -s faience nuovext
42 # cd $fs/usr/share/$PACKAGE/Translations ; find . -size -44k -delete
43 # mv $fs/usr/share/$PACKAGE/$PACKAGE.sh $fs/usr/bin/ && cd $fs/usr/bin
44 # sed -i 's|local/dooble/Dooble|bin/Dooble|g' $PACKAGE.sh
45 # sed -i 's|cd /usr/local/dooble|cd /usr/share/dooble|g' $PACKAGE.sh
46 # sed -i 's/fusion/ /g' $PACKAGE.sh
47 cd $fs/usr/share/$PACKAGE ; cat>'Dooble.ini' << EOT
48 [General]
49 iconSet=/usr/share/dooble/Icons/faience/configuration.cfg
50 desktopBackground=/usr/share/images/slitaz-background.jpg
52 [settingsWindow]
53 homeUrl=file:/usr/share/webhome/index.html
54 fixedWebFont="Fixed,10,-1,5,50,0,0,0,0,0"
55 p2pUrl=qrc:/search_c.html
56 showAuthentication=false
58 [mainWindow]
59 searchName=DuckDuckGo
60 EOT
61 chown -R root:root $fs
62 }
64 post_install()
65 {
66 for i in $(ls "$1/home" 2> /dev/null); do
67 [ -f "$1/home/$i/.dooble/Dooble/Dooble.ini" ] && continue
68 mkdir -p "$1/home/$i/.dooble/Dooble"
69 cp "$1/usr/share/dooble/Dooble.ini" "$1/home/$i/.dooble/Dooble"
70 rm "$1/home/$i/.local/share/applications/dooble.desktop"
71 chroot "$1/" chown -R $(stat -c "%u.%g" "$1/home/$i") "/home/$i/.dooble"
72 done
73 }
75 post_remove()
76 {
77 echo -n "Removing configuration files..."
78 rm -rf /home/*/.dooble
79 status
80 }