wok-next view catfish/receipt @ rev 14898
slitaz-menus: add Polish and Ukrainian languages
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Tue Jul 30 09:25:10 2013 +0300 (2013-07-30) |
parents | 00c51b3a010b |
children | 7896f0694ef6 |
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
59 chown -R root:root $fs
60 for ext in glade svg; do
61 find $fs -type f -name '*.'$ext -exec chmod 644 {} \;
62 done
63 }