wok-6.x diff catfish/receipt @ rev 14598

evas_generic_loaders: Up to 1.7.7
author Dominique Corbex <domcox@slitaz.org>
date Mon May 27 21:30:23 2013 +0200 (2013-05-27)
parents 55d75f0e3533
children 00c51b3a010b
line diff
     1.1 --- a/catfish/receipt	Thu Nov 03 22:14:55 2011 +0100
     1.2 +++ b/catfish/receipt	Mon May 27 21:30:23 2013 +0200
     1.3 @@ -3,31 +3,56 @@
     1.4  PACKAGE="catfish"
     1.5  VERSION="0.3.2"
     1.6  CATEGORY="utilities"
     1.7 -SHORT_DESC="Catfish is a versatile file searching tool."
     1.8 +SHORT_DESC="Catfish is a versatile file searching tool"
     1.9  MAINTAINER="devl547@gmail.com"
    1.10  TARBALL="$PACKAGE-$VERSION.tar.gz"
    1.11 -WEB_SITE="http://www.twotoasts.de/"
    1.12 -WGET_URL="http://www.twotoasts.de/media/catfish/$TARBALL"
    1.13 -BUILD_DEPENDS="pygtk-dev libglade-dev"
    1.14 -DEPENDS="pygtk libglade python-xdg"
    1.15 +WEB_SITE="http://twotoasts.de/index.php/catfish/"
    1.16 +WGET_URL="http://twotoasts.de/media/$PACKAGE/$TARBALL"
    1.17 +
    1.18 +DEPENDS="pygtk python-xdg findutils"
    1.19 +BUILD_DEPENDS="pygtk-dev libglade-dev python-xdg"
    1.20  
    1.21  # Rules to configure and make the package.
    1.22  compile_rules()
    1.23  {
    1.24 -	cd $src
    1.25  	./configure --prefix=/usr &&
    1.26  	make &&
    1.27 -	make DESTDIR=$PWD/_pkg install
    1.28 +	make DESTDIR=$install install
    1.29  }
    1.30  
    1.31  # Rules to gen a SliTaz package suitable for Tazpkg.
    1.32  genpkg_rules()
    1.33  {
    1.34 -	mkdir -p $fs/usr/share/catfish
    1.35 -	mkdir $fs/usr/share
    1.36 -	
    1.37 -	cp -a $_pkg/usr/bin $fs/usr
    1.38 -	cp -a $_pkg/usr/share/catfish $fs/usr/share
    1.39 -	cp -a $_pkg/usr/share/icons $fs/usr/share
    1.40 -	cp -a $_pkg/usr/share/applications $fs/usr/share
    1.41 +	mkdir -p $fs/usr/bin $fs/usr/share/catfish
    1.42 +	cat > $fs/usr/bin/catfish << EOT
    1.43 +#!/bin/sh
    1.44 +. /etc/slitaz/applications.conf
    1.45 +# use default FILE_MANAGER to open both folders and files
    1.46 +
    1.47 +cd /usr/share/catfish
    1.48 +python catfish.py --large-icons --thumbnails --path=\$HOME \
    1.49 +--fileman=\$FILE_MANAGER --wrapper=\$FILE_MANAGER "\$@"
    1.50 +EOT
    1.51 +	chmod +x $fs/usr/bin/catfish
    1.52 +
    1.53 +	cd $fs/usr/share/catfish
    1.54 +
    1.55 +	cp -a $install/usr/share/catfish/catfish.glade .
    1.56 +	# minify glade file
    1.57 +	gzip ./catfish.glade; mv ./catfish.glade.gz catfish.glade
    1.58 +
    1.59 +	# can't copy *.pyc because 'cook' removes it from package!
    1.60 +	#cp -a $install/usr/share/catfish/catfish.pyc .
    1.61 +	cp -a $src/catfish.py .
    1.62 +
    1.63 +	# seems catfish --wrapper not works at all, fix it (attention spaces!)
    1.64 +	sed -i "189 a\
    1.65 +\        self.open_wrapper = self.options.open_wrapper" \
    1.66 +		$fs/usr/share/catfish/catfish.py
    1.67 +
    1.68 +	cp -a $install/usr/share/icons $fs/usr/share
    1.69 +	ln -s ../icons/hicolor/scalable/apps/catfish.svg catfish.svg
    1.70 +
    1.71 +	cp -a $install/usr/share/locale $fs/usr/share
    1.72 +	ln -s ../locale locale
    1.73  }