wok diff dooble/receipt @ rev 23008

consonance: added build dependency gcc83
author Hans-G?nter Theisgen
date Tue Mar 03 07:08:14 2020 +0100 (2020-03-03)
parents 486dbfc17892
children 5ea0ce1cecc0
line diff
     1.1 --- a/dooble/receipt	Fri Jan 15 17:18:19 2016 +0100
     1.2 +++ b/dooble/receipt	Tue Mar 03 07:08:14 2020 +0100
     1.3 @@ -1,50 +1,72 @@
     1.4  # SliTaz package receipt.
     1.5  
     1.6  PACKAGE="dooble"
     1.7 -VERSION="1.48"
     1.8 +VERSION="2019.12.25"
     1.9  CATEGORY="network"
    1.10 -SHORT_DESC="Private mode only (almost) worst Qt webkit browser. With builtin fm & xterm."
    1.11 +SHORT_DESC="Private mode only (almost) worst Qt webkit browser. With builtin fm and xterm."
    1.12  MAINTAINER="psychomaniak@xakep.ru"
    1.13  LICENSE="BSD"
    1.14 -WEB_SITE="http://dooble.sourceforge.net"
    1.15 +WEB_SITE="https://textbrowser.github.io/dooble"
    1.16 +
    1.17  TARBALL="$PACKAGE-$VERSION.tar.gz"
    1.18 -WGET_URL="$SF_MIRROR/$PACKAGE/files/Dooble.d.tar.gz"
    1.19 +WGET_URL="https://github.com/textbrowser/$PACKAGE/archive/$VERSION.tar.gz"
    1.20  
    1.21 -DEPENDS="libQtCore libQtDBus libQtGui libQtNetwork libQtScript libQtSql \
    1.22 -libQtXml libgcrypt sqlite cacerts libQtWebkit"
    1.23 -BUILD_DEPENDS="wget cacerts Qt4-dev qmake libgcrypt-dev sqlite-dev"
    1.24  SUGGESTED="libQtWebkit-video"
    1.25 +DEPENDS="cacerts libgcrypt libQtCore libQtDBus libQtGui libQtNetwork 
    1.26 +	libQtScript libQtSql libQtWebkit libQtXml sqlite"
    1.27 +BUILD_DEPENDS="cacerts libgcrypt-dev qmake Qt4-dev sqlite-dev"
    1.28  
    1.29  # Rules to configure and make the package.
    1.30  compile_rules()
    1.31  {
    1.32 -	srcdir="$src/trunk/browser" ; cd $srcdir
    1.33 -	find . -regex '.*\(win32\|osx64\|icns\).*' -exec ls -l {} \; -delete
    1.34 -	sed -i 's|local/dooble/do|bin/do|g' dooble.desktop
    1.35 -	qmake PREFIX="/usr/" $PACKAGE.pro
    1.36 -	make && make INSTALL_ROOT=$install install
    1.37 -	rm -rf $install/usr/local/$PACKAGE/D${PACKAGE:1}
    1.38 -	mkdir -p $install/usr/share $install/usr/bin $install/usr/lib
    1.39 -	install $srcdir/libSpotOn/libspoton.so $install/usr/lib
    1.40 -	install $srcdir/D${PACKAGE:1} $install/usr/bin
    1.41 -	rm -rf $srcdir/temp $srcdir/T* $srcdir/D${PACKAGE:1}
    1.42 -	mv $install/usr/local/$PACKAGE $install/usr/share/
    1.43 -	rm $install/usr/share/$PACKAGE/Icons/AxB/dooble.ico
    1.44 -	cd $install/usr/share/$PACKAGE && rm -rf Tab Images
    1.45 +	srcdir="$src/1.x"
    1.46 +	cd $srcdir &&
    1.47 +	sed -i 's|local/dooble/do|bin/do|g' \
    1.48 +		dooble.desktop
    1.49 +
    1.50 +	qmake PREFIX="/usr/" DESTDIR=$DESTDIR $PACKAGE.pro &&
    1.51 +	make &&
    1.52 +
    1.53 +	mkdir -p $install/usr/bin
    1.54 +	mkdir -p $install/usr/lib
    1.55 +	mkdir -p $install/usr/share/$PACKAGE/Translations
    1.56 +
    1.57 +	mv $install/Dooble			$install/usr/bin
    1.58 +	cp -a $srcdir/dooble.sh			$install/usr/bin
    1.59 +	install $srcdir/libSpotOn/libspoton.so	$install/usr/lib
    1.60 +	cp -a $srcdir/Icons			$install/usr/share/$PACKAGE
    1.61 +	cp -a $srcdir/Translations/*.qm		$install/usr/share/$PACKAGE/Translations
    1.62 +	cp -a $srcdir/Archived/Plugins		$install/usr/share/$PACKAGE
    1.63  }
    1.64  
    1.65  # Rules to gen a SliTaz package suitable for Tazpkg.
    1.66  genpkg_rules()
    1.67  {
    1.68 -	cp -a $install/* $fs ; rm -rf $fs/home $fs/usr/local
    1.69 -	cd $fs/usr/share/$PACKAGE ; ln -s ../../bin/D${PACKAGE:1} D${PACKAGE:1}
    1.70 -	cd $fs/usr/share/$PACKAGE/Icons ; rm -rf 64x64 nuovext nuvola black-and-white && ln -s faience nuovext
    1.71 -	cd $fs/usr/share/$PACKAGE/Translations ; find . -size -44k -delete
    1.72 -	mv $fs/usr/share/$PACKAGE/$PACKAGE.sh $fs/usr/bin/ && cd $fs/usr/bin
    1.73 -	sed -i 's|local/dooble/Dooble|bin/Dooble|g' $PACKAGE.sh
    1.74 -	sed -i 's|cd /usr/local/dooble|cd /usr/share/dooble|g' $PACKAGE.sh
    1.75 -	sed -i 's/fusion/ /g' $PACKAGE.sh
    1.76 -	cd $fs/usr/share/$PACKAGE ; cat>'Dooble.ini' << EOT
    1.77 +	cp -a $install/*	$fs
    1.78 +
    1.79 +	cd			$fs/usr/share/$PACKAGE &&
    1.80 +	ln -s ../../bin/Dooble	Dooble
    1.81 +
    1.82 +	cd 			$fs/usr/share/$PACKAGE/Icons &&
    1.83 +	rm -rf 64x64 nuovext nuvola black-and-white &&
    1.84 +	ln -s faience nuovext
    1.85 +
    1.86 +	cd			$fs/usr/share/$PACKAGE/Translations
    1.87 +	find . -size -44k -delete
    1.88 +
    1.89 +	# object program
    1.90 +	sed -i 's|local/dooble/Dooble|bin/Dooble|g' \
    1.91 +		$fs/usr/bin/$PACKAGE.sh
    1.92 +
    1.93 +	# shared files
    1.94 +	sed -i 's|cd /usr/local/dooble|cd /usr/share/dooble|g' \
    1.95 +		$fs/usr/bin/$PACKAGE.sh
    1.96 +
    1.97 +	sed -i 's/fusion/ /g' \
    1.98 +		$fs/usr/bin/$PACKAGE.sh
    1.99 +
   1.100 +	cd $fs/usr/share/$PACKAGE &&
   1.101 +cat>'Dooble.ini' << EOT
   1.102  [General]
   1.103  iconSet=/usr/share/dooble/Icons/faience/configuration.cfg
   1.104  desktopBackground=/usr/share/images/slitaz-background.jpg
   1.105 @@ -58,15 +80,18 @@
   1.106  [mainWindow]
   1.107  searchName=DuckDuckGo
   1.108  EOT
   1.109 +
   1.110  	chown -R root:root $fs
   1.111  }
   1.112  
   1.113  post_install()
   1.114  {
   1.115 -	for i in $(ls "$1/home" 2> /dev/null); do
   1.116 -		[ -f "$1/home/$i/.dooble/Dooble/Dooble.ini" ] && continue
   1.117 +	for i in $(ls "$1/home" 2> /dev/null)
   1.118 +	  do
   1.119 +		[ -f "$1/home/$i/.dooble/Dooble/Dooble.ini" ] &&
   1.120 +		continue
   1.121  		mkdir -p "$1/home/$i/.dooble/Dooble"
   1.122 -		cp "$1/usr/share/dooble/Dooble.ini" "$1/home/$i/.dooble/Dooble"
   1.123 +		cp "$1/usr/share/dooble/Dooble.ini"	"$1/home/$i/.dooble/Dooble"
   1.124  		rm "$1/home/$i/.local/share/applications/dooble.desktop"
   1.125  		chroot "$1/" chown -R $(stat -c "%u.%g" "$1/home/$i") "/home/$i/.dooble"
   1.126  	done