wok-current annotate catfish/receipt @ rev 25554

Up fakeroot (1.31)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Apr 12 20:31:24 2023 +0000 (20 months ago)
parents d8c511e24c20
children
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"
pascal@25498 10 WEB_SITE="https://git.xfce.org/apps/catfish/about/"
pascal@25498 11 WGET_URL="https://web.archive.org/web/20170708163507if_/http://www.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@24491 16 # What is the latest version available today?
pascal@24491 17 current_version()
pascal@24491 18 {
pascal@24491 19 wget -O - $WEB_SITE 2>/dev/null | \
pascal@24491 20 sed '/catfish-[0-9]/!d;s|.*catfish-||;s|.tar.*||;q'
pascal@24491 21 }
pascal@24491 22
pascal@11218 23 # Rules to configure and make the package.
pascal@11218 24 compile_rules()
pascal@11218 25 {
pascal@11218 26 ./configure --prefix=/usr &&
pascal@11218 27 make &&
al@14051 28 make DESTDIR=$install install
pascal@11218 29 }
pascal@11218 30
pascal@11218 31 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@11218 32 genpkg_rules()
pascal@11218 33 {
al@14051 34 mkdir -p $fs/usr/bin $fs/usr/share/catfish
al@14051 35 cat > $fs/usr/bin/catfish << EOT
al@14051 36 #!/bin/sh
al@14051 37 . /etc/slitaz/applications.conf
al@14051 38 # use default FILE_MANAGER to open both folders and files
al@14051 39
al@14051 40 cd /usr/share/catfish
al@14051 41 python catfish.py --large-icons --thumbnails --path=\$HOME \
al@14051 42 --fileman=\$FILE_MANAGER --wrapper=\$FILE_MANAGER "\$@"
al@14051 43 EOT
al@14051 44 chmod +x $fs/usr/bin/catfish
al@14051 45
al@14051 46 cd $fs/usr/share/catfish
al@14051 47
al@14051 48 cp -a $install/usr/share/catfish/catfish.glade .
al@14051 49 # minify glade file
al@14051 50 gzip ./catfish.glade; mv ./catfish.glade.gz catfish.glade
al@14051 51
al@14051 52 # can't copy *.pyc because 'cook' removes it from package!
al@14051 53 #cp -a $install/usr/share/catfish/catfish.pyc .
al@14051 54 cp -a $src/catfish.py .
al@14051 55
al@14051 56 # seems catfish --wrapper not works at all, fix it (attention spaces!)
al@14051 57 sed -i "189 a\
al@14051 58 \ self.open_wrapper = self.options.open_wrapper" \
al@14051 59 $fs/usr/share/catfish/catfish.py
al@14051 60
al@14051 61 cp -a $install/usr/share/icons $fs/usr/share
al@14051 62 ln -s ../icons/hicolor/scalable/apps/catfish.svg catfish.svg
al@14051 63
al@14051 64 cp -a $install/usr/share/locale $fs/usr/share
al@14051 65 ln -s ../locale locale
al@14793 66
al@14793 67 chown -R root:root $fs
al@14793 68 for ext in glade svg; do
pascal@14794 69 find $fs -type f -name '*.'$ext -exec chmod 644 {} \;
al@14793 70 done
pascal@11218 71 }