wok annotate dooble/receipt @ rev 17946

asunder: up (2.7)
author Aleksej Bobylev <al.bobylev@gmail.com>
date Thu Apr 16 02:02:30 2015 +0300 (2015-04-16)
parents 17c84cd0c81a
children 9e01bc6321ea
rev   line source
psychomaniak@16929 1 # SliTaz package receipt.
psychomaniak@16929 2
psychomaniak@16929 3 PACKAGE="dooble"
psychomaniak@16929 4 VERSION="1.48"
al@17516 5 CATEGORY="network"
psychomaniak@17091 6 SHORT_DESC="Private mode only (almost) worst Qt webkit browser. With builtin fm & xterm."
psychomaniak@16929 7 MAINTAINER="psychomaniak@xakep.ru"
psychomaniak@16929 8 LICENSE="BSD"
psychomaniak@16929 9 WEB_SITE="http://dooble.sourceforge.net"
psychomaniak@16929 10 TARBALL="$PACKAGE-$VERSION.tar.gz"
psychomaniak@16929 11 WGET_URL="$SF_MIRROR/$PACKAGE/files/Dooble.d.tar.gz"
psychomaniak@16929 12
psychomaniak@16929 13 DEPENDS="libQtCore libQtDBus libQtGui libQtNetwork libQtScript libQtSql \
psychomaniak@17093 14 libQtXml libgcrypt sqlite cacerts libQtWebkit"
psychomaniak@16929 15 BUILD_DEPENDS="wget cacerts Qt4-dev qmake libgcrypt-dev sqlite-dev"
psychomaniak@17091 16 SUGGESTED="libQtWebkit-video"
psychomaniak@16929 17
psychomaniak@16929 18 # Rules to configure and make the package.
psychomaniak@16929 19 compile_rules()
psychomaniak@16929 20 {
psychomaniak@17091 21 srcdir="$src/trunk/browser" ; cd $srcdir
psychomaniak@17091 22 find . -regex '.*\(win32\|osx64\|icns\).*' -exec ls -l {} \; -delete
psychomaniak@17091 23 sed -i 's|local/dooble/do|bin/do|g' dooble.desktop
psychomaniak@17091 24 qmake PREFIX="/usr/" $PACKAGE.pro
psychomaniak@16929 25 make && make INSTALL_ROOT=$install install
psychomaniak@17091 26 rm -rf $install/usr/local/$PACKAGE/D${PACKAGE:1}
psychomaniak@17091 27 mkdir -p $install/usr/share $install/usr/bin $install/usr/lib
psychomaniak@17091 28 install $srcdir/libSpotOn/libspoton.so $install/usr/lib
psychomaniak@17091 29 install $srcdir/D${PACKAGE:1} $install/usr/bin
psychomaniak@17091 30 rm -rf $srcdir/temp $srcdir/T* $srcdir/D${PACKAGE:1}
psychomaniak@17091 31 mv $install/usr/local/$PACKAGE $install/usr/share/
psychomaniak@17091 32 rm $install/usr/share/$PACKAGE/Icons/AxB/dooble.ico
psychomaniak@17091 33 cd $install/usr/share/$PACKAGE && rm -rf Tab Images
psychomaniak@16929 34 }
psychomaniak@16929 35
psychomaniak@16929 36 # Rules to gen a SliTaz package suitable for Tazpkg.
psychomaniak@16929 37 genpkg_rules()
psychomaniak@16929 38 {
psychomaniak@17091 39 cp -a $install/* $fs ; rm -rf $fs/home $fs/usr/local
psychomaniak@17091 40 cd $fs/usr/share/$PACKAGE ; ln -s ../../bin/D${PACKAGE:1} D${PACKAGE:1}
psychomaniak@17091 41 cd $fs/usr/share/$PACKAGE/Icons ; rm -rf 64x64 nuovext nuvola black-and-white && ln -s faience nuovext
psychomaniak@17094 42 cd $fs/usr/share/$PACKAGE/Translations ; find . -size -44k -delete
psychomaniak@17091 43 mv $fs/usr/share/$PACKAGE/$PACKAGE.sh $fs/usr/bin/ && cd $fs/usr/bin
psychomaniak@17091 44 sed -i 's|local/dooble/Dooble|bin/Dooble|g' $PACKAGE.sh
psychomaniak@17091 45 sed -i 's|cd /usr/local/dooble|cd /usr/share/dooble|g' $PACKAGE.sh
psychomaniak@17091 46 sed -i 's/fusion/ /g' $PACKAGE.sh
psychomaniak@17091 47 cd $fs/usr/share/$PACKAGE ; cat>'Dooble.ini' << EOT
psychomaniak@17091 48 [General]
psychomaniak@17091 49 iconSet=/usr/share/dooble/Icons/faience/configuration.cfg
psychomaniak@17091 50 desktopBackground=/usr/share/images/slitaz-background.jpg
psychomaniak@17091 51
psychomaniak@17091 52 [settingsWindow]
psychomaniak@17091 53 homeUrl=file:/usr/share/webhome/index.html
psychomaniak@17091 54 fixedWebFont="Fixed,10,-1,5,50,0,0,0,0,0"
psychomaniak@17091 55 p2pUrl=qrc:/search_c.html
psychomaniak@17091 56 showAuthentication=false
psychomaniak@17091 57
psychomaniak@17091 58 [mainWindow]
psychomaniak@17091 59 searchName=DuckDuckGo
psychomaniak@17091 60 EOT
al@17096 61 chown -R root:root $fs
psychomaniak@16929 62 }
psychomaniak@17091 63
psychomaniak@17091 64 post_install()
psychomaniak@17091 65 {
psychomaniak@17091 66 for i in $(ls $1/home 2> /dev/null); do
psychomaniak@17091 67 [ -f /home/$i/.dooble/Dooble/Dooble.ini ] && continue
psychomaniak@17091 68 mkdir -p $1/home/$i/.dooble/Dooble
psychomaniak@17091 69 cp $1/usr/share/dooble/Dooble.ini $1/home/$i/.dooble/Dooble
psychomaniak@17091 70 rm $1/home/$i/.local/share/applications/dooble.desktop
pascal@17249 71 chroot $1/ chown -R $(stat -c "%u.%g" $1/home/$i) /home/$i/.dooble
psychomaniak@17091 72 done
psychomaniak@17091 73 }
psychomaniak@17091 74
psychomaniak@17091 75 post_remove()
psychomaniak@17091 76 {
psychomaniak@17091 77 echo -n "Removing configuration files..."
psychomaniak@17091 78 rm -rf /home/*/.dooble
psychomaniak@17091 79 status
psychomaniak@17091 80 }