wok view catfish/receipt @ rev 14403
efreet-dev: update deps
author | Dominique Corbex <domcox@slitaz.org> |
---|---|
date | Tue Apr 23 18:26:08 2013 +0200 (2013-04-23) |
parents | 55d75f0e3533 |
children | 00c51b3a010b |
line source
1 # SliTaz package receipt.
3 PACKAGE="catfish"
4 VERSION="0.3.2"
5 CATEGORY="utilities"
6 SHORT_DESC="Catfish is a versatile file searching tool"
7 MAINTAINER="devl547@gmail.com"
8 TARBALL="$PACKAGE-$VERSION.tar.gz"
9 WEB_SITE="http://twotoasts.de/index.php/catfish/"
10 WGET_URL="http://twotoasts.de/media/$PACKAGE/$TARBALL"
12 DEPENDS="pygtk python-xdg findutils"
13 BUILD_DEPENDS="pygtk-dev libglade-dev python-xdg"
15 # Rules to configure and make the package.
16 compile_rules()
17 {
18 ./configure --prefix=/usr &&
19 make &&
20 make DESTDIR=$install install
21 }
23 # Rules to gen a SliTaz package suitable for Tazpkg.
24 genpkg_rules()
25 {
26 mkdir -p $fs/usr/bin $fs/usr/share/catfish
27 cat > $fs/usr/bin/catfish << EOT
28 #!/bin/sh
29 . /etc/slitaz/applications.conf
30 # use default FILE_MANAGER to open both folders and files
32 cd /usr/share/catfish
33 python catfish.py --large-icons --thumbnails --path=\$HOME \
34 --fileman=\$FILE_MANAGER --wrapper=\$FILE_MANAGER "\$@"
35 EOT
36 chmod +x $fs/usr/bin/catfish
38 cd $fs/usr/share/catfish
40 cp -a $install/usr/share/catfish/catfish.glade .
41 # minify glade file
42 gzip ./catfish.glade; mv ./catfish.glade.gz catfish.glade
44 # can't copy *.pyc because 'cook' removes it from package!
45 #cp -a $install/usr/share/catfish/catfish.pyc .
46 cp -a $src/catfish.py .
48 # seems catfish --wrapper not works at all, fix it (attention spaces!)
49 sed -i "189 a\
50 \ self.open_wrapper = self.options.open_wrapper" \
51 $fs/usr/share/catfish/catfish.py
53 cp -a $install/usr/share/icons $fs/usr/share
54 ln -s ../icons/hicolor/scalable/apps/catfish.svg catfish.svg
56 cp -a $install/usr/share/locale $fs/usr/share
57 ln -s ../locale locale
58 }