wok-next view catfish/receipt @ rev 21469

updated tinc (1.0.25 -> 1.0.36)
author Hans-G?nter Theisgen
date Wed May 13 07:41:00 2020 +0100 (2020-05-13)
parents a3254b6a96ac
children
line source
1 # SliTaz package receipt v2.
3 PACKAGE="catfish"
4 VERSION="0.3.2"
5 CATEGORY="utilities"
6 SHORT_DESC="Versatile file searching tool"
7 MAINTAINER="devl547@gmail.com"
8 LICENSE="GPL2"
9 WEB_SITE="http://www.twotoasts.de/index.php/catfish/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="http://twotoasts.de/media/$PACKAGE/$TARBALL"
14 BUILD_DEPENDS="python-pygtk-dev libglade-dev python-pyxdg gettext-dev"
16 compile_rules() {
17 ./configure --prefix=/usr &&
18 make &&
19 make DESTDIR=$install install
20 }
22 genpkg_rules() {
23 mkdir -p $fs/usr/bin $fs/usr/share/catfish
24 cat > $fs/usr/bin/catfish << EOT
25 #!/bin/sh
26 . /etc/slitaz/applications.conf
27 # use default FILE_MANAGER to open both folders and files
29 cd /usr/share/catfish
30 python catfish.py --large-icons --thumbnails --path=\$HOME \
31 --fileman=\$FILE_MANAGER --wrapper=\$FILE_MANAGER "\$@"
32 EOT
33 chmod +x $fs/usr/bin/catfish
35 cd $fs/usr/share/catfish
37 cp -a $install/usr/share/catfish/catfish.glade .
38 # minify glade file
39 gzip ./catfish.glade; mv ./catfish.glade.gz catfish.glade
41 # can't copy *.pyc because 'cook' removes it from package!
42 #cp -a $install/usr/share/catfish/catfish.pyc .
43 cp -a $src/catfish.py .
45 # seems catfish --wrapper not works at all, fix it (attention spaces!)
46 sed -i "189 a\
47 \ self.open_wrapper = self.options.open_wrapper" \
48 $fs/usr/share/catfish/catfish.py
50 cp -a $install/usr/share/icons $fs/usr/share
51 ln -s ../icons/hicolor/scalable/apps/catfish.svg catfish.svg
53 cp -a $install/usr/share/locale $fs/usr/share
54 ln -s ../locale locale
56 chown -R root:root $fs
57 for ext in glade svg; do
58 find $fs -type f -name '*.'$ext -exec chmod 644 {} \;
59 done
60 DEPENDS="python-pygtk python-pyxdg findutils"
61 }