wok-6.x annotate catfish/receipt @ rev 19700
Mv grub/stuff/splash.xpm.gz to slitaz-configs to have a splash image on HD install
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Tue Feb 14 11:23:11 2017 +0100 (2017-02-14) |
parents | d7e7bd01ad99 |
children | d8c511e24c20 |
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@15002 | 8 LICENSE="GPL2" |
pascal@11218 | 9 TARBALL="$PACKAGE-$VERSION.tar.gz" |
al@14051 | 10 WEB_SITE="http://twotoasts.de/index.php/catfish/" |
al@14051 | 11 WGET_URL="http://twotoasts.de/media/$PACKAGE/$TARBALL" |
al@14051 | 12 |
al@14051 | 13 DEPENDS="pygtk python-xdg findutils" |
al@14051 | 14 BUILD_DEPENDS="pygtk-dev libglade-dev python-xdg" |
pascal@11218 | 15 |
pascal@11218 | 16 # Rules to configure and make the package. |
pascal@11218 | 17 compile_rules() |
pascal@11218 | 18 { |
pascal@11218 | 19 ./configure --prefix=/usr && |
pascal@11218 | 20 make && |
al@14051 | 21 make DESTDIR=$install install |
pascal@11218 | 22 } |
pascal@11218 | 23 |
pascal@11218 | 24 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@11218 | 25 genpkg_rules() |
pascal@11218 | 26 { |
al@14051 | 27 mkdir -p $fs/usr/bin $fs/usr/share/catfish |
al@14051 | 28 cat > $fs/usr/bin/catfish << EOT |
al@14051 | 29 #!/bin/sh |
al@14051 | 30 . /etc/slitaz/applications.conf |
al@14051 | 31 # use default FILE_MANAGER to open both folders and files |
al@14051 | 32 |
al@14051 | 33 cd /usr/share/catfish |
al@14051 | 34 python catfish.py --large-icons --thumbnails --path=\$HOME \ |
al@14051 | 35 --fileman=\$FILE_MANAGER --wrapper=\$FILE_MANAGER "\$@" |
al@14051 | 36 EOT |
al@14051 | 37 chmod +x $fs/usr/bin/catfish |
al@14051 | 38 |
al@14051 | 39 cd $fs/usr/share/catfish |
al@14051 | 40 |
al@14051 | 41 cp -a $install/usr/share/catfish/catfish.glade . |
al@14051 | 42 # minify glade file |
al@14051 | 43 gzip ./catfish.glade; mv ./catfish.glade.gz catfish.glade |
al@14051 | 44 |
al@14051 | 45 # can't copy *.pyc because 'cook' removes it from package! |
al@14051 | 46 #cp -a $install/usr/share/catfish/catfish.pyc . |
al@14051 | 47 cp -a $src/catfish.py . |
al@14051 | 48 |
al@14051 | 49 # seems catfish --wrapper not works at all, fix it (attention spaces!) |
al@14051 | 50 sed -i "189 a\ |
al@14051 | 51 \ self.open_wrapper = self.options.open_wrapper" \ |
al@14051 | 52 $fs/usr/share/catfish/catfish.py |
al@14051 | 53 |
al@14051 | 54 cp -a $install/usr/share/icons $fs/usr/share |
al@14051 | 55 ln -s ../icons/hicolor/scalable/apps/catfish.svg catfish.svg |
al@14051 | 56 |
al@14051 | 57 cp -a $install/usr/share/locale $fs/usr/share |
al@14051 | 58 ln -s ../locale locale |
al@14793 | 59 |
al@14793 | 60 chown -R root:root $fs |
al@14793 | 61 for ext in glade svg; do |
pascal@14794 | 62 find $fs -type f -name '*.'$ext -exec chmod 644 {} \; |
al@14793 | 63 done |
pascal@11218 | 64 } |