# HG changeset patch # User Xander Ziiryanoff # Date 1409182941 -7200 # Node ID 8d9754bad0a10dd8f1b2a7ef8a4a55490b93295c # Parent 709cff7a6bed5e24f48484e74311004fee800b8c dooble: clean $fs diff -r 709cff7a6bed -r 8d9754bad0a1 dooble/receipt --- a/dooble/receipt Wed Aug 27 22:27:18 2014 +0300 +++ b/dooble/receipt Thu Aug 28 01:42:21 2014 +0200 @@ -3,7 +3,7 @@ PACKAGE="dooble" VERSION="1.48" CATEGORY="web" -SHORT_DESC="Qt Webkit-based browser with built-in terminal" +SHORT_DESC="Private mode only (almost) worst Qt webkit browser. With builtin fm & xterm." MAINTAINER="psychomaniak@xakep.ru" LICENSE="BSD" WEB_SITE="http://dooble.sourceforge.net" @@ -11,19 +11,71 @@ WGET_URL="$SF_MIRROR/$PACKAGE/files/Dooble.d.tar.gz" DEPENDS="libQtCore libQtDBus libQtGui libQtNetwork libQtScript libQtSql \ -libQtXml libQtWebKit libspoton gst-plugins-base" +libQtXml libQtWebkit cacerts xdg-utils" BUILD_DEPENDS="wget cacerts Qt4-dev qmake libgcrypt-dev sqlite-dev" +SUGGESTED="libQtWebkit-video" # Rules to configure and make the package. compile_rules() { - cd $src/trunk/browser - qmake dooble.pro + srcdir="$src/trunk/browser" ; cd $srcdir + find . -regex '.*\(win32\|osx64\|icns\).*' -exec ls -l {} \; -delete + sed -i 's|local/dooble/do|bin/do|g' dooble.desktop + qmake PREFIX="/usr/" $PACKAGE.pro make && make INSTALL_ROOT=$install install + rm -rf $install/usr/local/$PACKAGE/D${PACKAGE:1} + mkdir -p $install/usr/share $install/usr/bin $install/usr/lib + install $srcdir/libSpotOn/libspoton.so $install/usr/lib + install $srcdir/D${PACKAGE:1} $install/usr/bin + rm -rf $srcdir/temp $srcdir/T* $srcdir/D${PACKAGE:1} + mv $install/usr/local/$PACKAGE $install/usr/share/ + rm $install/usr/share/$PACKAGE/Icons/AxB/dooble.ico + cd $install/usr/share/$PACKAGE && rm -rf Tab Images + ln -s Translations ../../local/$PACKAGE/translations } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { - cp -a $install/* $fs + cp -a $install/* $fs ; rm -rf $fs/home $fs/usr/local + cd $fs/usr/share/$PACKAGE ; ln -s ../../bin/D${PACKAGE:1} D${PACKAGE:1} + cd $fs/usr/share/$PACKAGE/Icons ; rm -rf 64x64 nuovext nuvola black-and-white && ln -s faience nuovext + cd $fs/usr/share/$PACKAGE/Translations ; find . -size -44k -delete + mv $fs/usr/share/$PACKAGE/$PACKAGE.sh $fs/usr/bin/ && cd $fs/usr/bin + sed -i 's|local/dooble/Dooble|bin/Dooble|g' $PACKAGE.sh + sed -i 's|cd /usr/local/dooble|cd /usr/share/dooble|g' $PACKAGE.sh + sed -i 's/fusion/ /g' $PACKAGE.sh + cd $fs/usr/share/$PACKAGE ; cat>'Dooble.ini' << EOT +[General] +iconSet=/usr/share/dooble/Icons/faience/configuration.cfg +desktopBackground=/usr/share/images/slitaz-background.jpg + +[settingsWindow] +homeUrl=file:/usr/share/webhome/index.html +fixedWebFont="Fixed,10,-1,5,50,0,0,0,0,0" +p2pUrl=qrc:/search_c.html +showAuthentication=false + +[mainWindow] +searchName=DuckDuckGo +EOT + } + +post_install() +{ + for i in $(ls $1/home 2> /dev/null); do + [ -f /home/$i/.dooble/Dooble/Dooble.ini ] && continue + mkdir -p $1/home/$i/.dooble/Dooble + cp $1/usr/share/dooble/Dooble.ini $1/home/$i/.dooble/Dooble + rm $1/home/$i/.local/share/applications/dooble.desktop + chroot $1/ chown -R $i.users /home/$i/.dooble + done +} + +post_remove() +{ + echo -n "Removing configuration files..." + rm -rf /home/*/.dooble + status +} diff -r 709cff7a6bed -r 8d9754bad0a1 libspoton/receipt --- a/libspoton/receipt Wed Aug 27 22:27:18 2014 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,29 +0,0 @@ -# SliTaz package receipt. - -PACKAGE="libspoton" -VERSION="0.09.08" -CATEGORY="web" -SHORT_DESC="library required by dooble browser" -MAINTAINER="psychomaniak@xakep.ru" -LICENSE="BSD" -WEB_SITE="http://sourceforge.net/projects/spot-on/" -TARBALL="$PACKAGE-$VERSION.tar.gz" -WGET_URL="$SF_MIRROR/spot-on/files/Spot-On.d.tar.gz" - -DEPENDS="sqlite libgcrypt" -BUILD_DEPENDS="libgcrypt-dev sqlite-dev" - -# Rules to configure and make the package. -compile_rules() -{ - cd $src/libSpotOn - make - mkdir -p $DESTDIR/usr/lib - cp -f libspoton.so $DESTDIR/usr/lib -} - -# Rules to gen a SliTaz package suitable for Tazpkg. -genpkg_rules() -{ - cp -a $install/* $fs -}