wok-next annotate catfish/receipt @ rev 21596

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