wok view catfish/receipt @ rev 24985
Add python-future
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue May 10 07:46:58 2022 +0000 (2022-05-10) |
parents | 7896f0694ef6 |
children | 48dff2952881 |
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 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="http://twotoasts.de/index.php/catfish/"
11 WGET_URL="http://twotoasts.de/media/$PACKAGE/$TARBALL"
13 DEPENDS="pygtk python-xdg findutils"
14 BUILD_DEPENDS="pygtk-dev libglade-dev python-xdg"
16 # What is the latest version available today?
17 current_version()
18 {
19 wget -O - $WEB_SITE 2>/dev/null | \
20 sed '/catfish-[0-9]/!d;s|.*catfish-||;s|.tar.*||;q'
21 }
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 ./configure --prefix=/usr &&
27 make &&
28 make DESTDIR=$install install
29 }
31 # Rules to gen a SliTaz package suitable for Tazpkg.
32 genpkg_rules()
33 {
34 mkdir -p $fs/usr/bin $fs/usr/share/catfish
35 cat > $fs/usr/bin/catfish << EOT
36 #!/bin/sh
37 . /etc/slitaz/applications.conf
38 # use default FILE_MANAGER to open both folders and files
40 cd /usr/share/catfish
41 python catfish.py --large-icons --thumbnails --path=\$HOME \
42 --fileman=\$FILE_MANAGER --wrapper=\$FILE_MANAGER "\$@"
43 EOT
44 chmod +x $fs/usr/bin/catfish
46 cd $fs/usr/share/catfish
48 cp -a $install/usr/share/catfish/catfish.glade .
49 # minify glade file
50 gzip ./catfish.glade; mv ./catfish.glade.gz catfish.glade
52 # can't copy *.pyc because 'cook' removes it from package!
53 #cp -a $install/usr/share/catfish/catfish.pyc .
54 cp -a $src/catfish.py .
56 # seems catfish --wrapper not works at all, fix it (attention spaces!)
57 sed -i "189 a\
58 \ self.open_wrapper = self.options.open_wrapper" \
59 $fs/usr/share/catfish/catfish.py
61 cp -a $install/usr/share/icons $fs/usr/share
62 ln -s ../icons/hicolor/scalable/apps/catfish.svg catfish.svg
64 cp -a $install/usr/share/locale $fs/usr/share
65 ln -s ../locale locale
67 chown -R root:root $fs
68 for ext in glade svg; do
69 find $fs -type f -name '*.'$ext -exec chmod 644 {} \;
70 done
71 }