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