wok rev 17091

dooble: clean $fs
author Xander Ziiryanoff <psychomaniak@xakep.ru>
date Thu Aug 28 01:42:21 2014 +0200 (2014-08-28)
parents 709cff7a6bed
children bf52d3ac4b95
files dooble/receipt libspoton/receipt
line diff
     1.1 --- a/dooble/receipt	Wed Aug 27 22:27:18 2014 +0300
     1.2 +++ b/dooble/receipt	Thu Aug 28 01:42:21 2014 +0200
     1.3 @@ -3,7 +3,7 @@
     1.4  PACKAGE="dooble"
     1.5  VERSION="1.48"
     1.6  CATEGORY="web"
     1.7 -SHORT_DESC="Qt Webkit-based browser with built-in terminal"
     1.8 +SHORT_DESC="Private mode only (almost) worst Qt webkit browser. With builtin fm & xterm."
     1.9  MAINTAINER="psychomaniak@xakep.ru"
    1.10  LICENSE="BSD"
    1.11  WEB_SITE="http://dooble.sourceforge.net"
    1.12 @@ -11,19 +11,71 @@
    1.13  WGET_URL="$SF_MIRROR/$PACKAGE/files/Dooble.d.tar.gz"
    1.14  
    1.15  DEPENDS="libQtCore libQtDBus libQtGui libQtNetwork libQtScript libQtSql \
    1.16 -libQtXml libQtWebKit libspoton gst-plugins-base"
    1.17 +libQtXml libQtWebkit cacerts xdg-utils"
    1.18  BUILD_DEPENDS="wget cacerts Qt4-dev qmake libgcrypt-dev sqlite-dev"
    1.19 +SUGGESTED="libQtWebkit-video"
    1.20  
    1.21  # Rules to configure and make the package.
    1.22  compile_rules()
    1.23  {
    1.24 -	cd $src/trunk/browser
    1.25 -	qmake dooble.pro
    1.26 +	srcdir="$src/trunk/browser" ; cd $srcdir
    1.27 +	find . -regex '.*\(win32\|osx64\|icns\).*' -exec ls -l {} \; -delete
    1.28 +	sed -i 's|local/dooble/do|bin/do|g' dooble.desktop
    1.29 +	qmake PREFIX="/usr/" $PACKAGE.pro
    1.30  	make && make INSTALL_ROOT=$install install
    1.31 +	rm -rf $install/usr/local/$PACKAGE/D${PACKAGE:1}
    1.32 +	mkdir -p $install/usr/share $install/usr/bin $install/usr/lib
    1.33 +	install $srcdir/libSpotOn/libspoton.so $install/usr/lib
    1.34 +	install $srcdir/D${PACKAGE:1} $install/usr/bin
    1.35 +	rm -rf $srcdir/temp $srcdir/T* $srcdir/D${PACKAGE:1}
    1.36 +	mv $install/usr/local/$PACKAGE $install/usr/share/
    1.37 +	rm $install/usr/share/$PACKAGE/Icons/AxB/dooble.ico
    1.38 +	cd $install/usr/share/$PACKAGE && rm -rf Tab Images
    1.39 +	ln -s Translations ../../local/$PACKAGE/translations
    1.40  }
    1.41  
    1.42  # Rules to gen a SliTaz package suitable for Tazpkg.
    1.43  genpkg_rules()
    1.44  {
    1.45 -	cp -a $install/* $fs
    1.46 +	cp -a $install/* $fs ; rm -rf $fs/home $fs/usr/local
    1.47 +	cd $fs/usr/share/$PACKAGE ; ln -s ../../bin/D${PACKAGE:1} D${PACKAGE:1}
    1.48 +	cd $fs/usr/share/$PACKAGE/Icons ; rm -rf 64x64 nuovext nuvola black-and-white && ln -s faience nuovext
    1.49 +	cd $fs/usr/share/$PACKAGE/Translations ; find . -size -44k -delete
    1.50 +	mv $fs/usr/share/$PACKAGE/$PACKAGE.sh $fs/usr/bin/ && cd $fs/usr/bin
    1.51 +	sed -i 's|local/dooble/Dooble|bin/Dooble|g' $PACKAGE.sh
    1.52 +	sed -i 's|cd /usr/local/dooble|cd /usr/share/dooble|g' $PACKAGE.sh
    1.53 +	sed -i 's/fusion/ /g' $PACKAGE.sh
    1.54 +	cd $fs/usr/share/$PACKAGE ; cat>'Dooble.ini' << EOT
    1.55 +[General]
    1.56 +iconSet=/usr/share/dooble/Icons/faience/configuration.cfg
    1.57 +desktopBackground=/usr/share/images/slitaz-background.jpg
    1.58 +
    1.59 +[settingsWindow]
    1.60 +homeUrl=file:/usr/share/webhome/index.html
    1.61 +fixedWebFont="Fixed,10,-1,5,50,0,0,0,0,0"
    1.62 +p2pUrl=qrc:/search_c.html
    1.63 +showAuthentication=false
    1.64 +
    1.65 +[mainWindow]
    1.66 +searchName=DuckDuckGo
    1.67 +EOT
    1.68 +	
    1.69  }
    1.70 +
    1.71 +post_install()
    1.72 +{
    1.73 +	for i in $(ls $1/home 2> /dev/null); do
    1.74 +		[ -f /home/$i/.dooble/Dooble/Dooble.ini ] && continue
    1.75 +		mkdir -p $1/home/$i/.dooble/Dooble
    1.76 +		cp $1/usr/share/dooble/Dooble.ini $1/home/$i/.dooble/Dooble
    1.77 +		rm $1/home/$i/.local/share/applications/dooble.desktop
    1.78 +		chroot $1/ chown -R $i.users /home/$i/.dooble
    1.79 +	done
    1.80 +}
    1.81 +
    1.82 +post_remove()
    1.83 +{
    1.84 +	echo -n "Removing configuration files..."
    1.85 +	rm -rf /home/*/.dooble
    1.86 +	status
    1.87 +}
     2.1 --- a/libspoton/receipt	Wed Aug 27 22:27:18 2014 +0300
     2.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.3 @@ -1,29 +0,0 @@
     2.4 -# SliTaz package receipt.
     2.5 -
     2.6 -PACKAGE="libspoton"
     2.7 -VERSION="0.09.08"
     2.8 -CATEGORY="web"
     2.9 -SHORT_DESC="library required by dooble browser"
    2.10 -MAINTAINER="psychomaniak@xakep.ru"
    2.11 -LICENSE="BSD"
    2.12 -WEB_SITE="http://sourceforge.net/projects/spot-on/"
    2.13 -TARBALL="$PACKAGE-$VERSION.tar.gz"
    2.14 -WGET_URL="$SF_MIRROR/spot-on/files/Spot-On.d.tar.gz"
    2.15 -
    2.16 -DEPENDS="sqlite libgcrypt"
    2.17 -BUILD_DEPENDS="libgcrypt-dev sqlite-dev"
    2.18 -
    2.19 -# Rules to configure and make the package.
    2.20 -compile_rules()
    2.21 -{
    2.22 -	cd $src/libSpotOn
    2.23 -	make
    2.24 -	mkdir -p $DESTDIR/usr/lib
    2.25 -	cp -f libspoton.so $DESTDIR/usr/lib
    2.26 -}
    2.27 -
    2.28 -# Rules to gen a SliTaz package suitable for Tazpkg.
    2.29 -genpkg_rules()
    2.30 -{
    2.31 -	cp -a $install/* $fs
    2.32 -}