wok view catfish/receipt @ rev 22407
Add knot-dns (again)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Dec 10 16:56:23 2019 +0100 (2019-12-10) |
parents | d7e7bd01ad99 |
children | d8c511e24c20 |
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 # Rules to configure and make the package.
17 compile_rules()
18 {
19 ./configure --prefix=/usr &&
20 make &&
21 make DESTDIR=$install install
22 }
24 # Rules to gen a SliTaz package suitable for Tazpkg.
25 genpkg_rules()
26 {
27 mkdir -p $fs/usr/bin $fs/usr/share/catfish
28 cat > $fs/usr/bin/catfish << EOT
29 #!/bin/sh
30 . /etc/slitaz/applications.conf
31 # use default FILE_MANAGER to open both folders and files
33 cd /usr/share/catfish
34 python catfish.py --large-icons --thumbnails --path=\$HOME \
35 --fileman=\$FILE_MANAGER --wrapper=\$FILE_MANAGER "\$@"
36 EOT
37 chmod +x $fs/usr/bin/catfish
39 cd $fs/usr/share/catfish
41 cp -a $install/usr/share/catfish/catfish.glade .
42 # minify glade file
43 gzip ./catfish.glade; mv ./catfish.glade.gz catfish.glade
45 # can't copy *.pyc because 'cook' removes it from package!
46 #cp -a $install/usr/share/catfish/catfish.pyc .
47 cp -a $src/catfish.py .
49 # seems catfish --wrapper not works at all, fix it (attention spaces!)
50 sed -i "189 a\
51 \ self.open_wrapper = self.options.open_wrapper" \
52 $fs/usr/share/catfish/catfish.py
54 cp -a $install/usr/share/icons $fs/usr/share
55 ln -s ../icons/hicolor/scalable/apps/catfish.svg catfish.svg
57 cp -a $install/usr/share/locale $fs/usr/share
58 ln -s ../locale locale
60 chown -R root:root $fs
61 for ext in glade svg; do
62 find $fs -type f -name '*.'$ext -exec chmod 644 {} \;
63 done
64 }