# SliTaz package receipt. PACKAGE="catfish" VERSION="0.3.2" CATEGORY="utilities" SHORT_DESC="Catfish is a versatile file searching tool" MAINTAINER="devl547@gmail.com" LICENSE="GPL2" TARBALL="$PACKAGE-$VERSION.tar.gz" WEB_SITE="https://git.xfce.org/apps/catfish/about/" WGET_URL="https://web.archive.org/web/20170708163507if_/http://www.twotoasts.de/media/$PACKAGE/$TARBALL" DEPENDS="pygtk python-xdg findutils" BUILD_DEPENDS="pygtk-dev libglade-dev python-xdg" # What is the latest version available today? current_version() { wget -O - $WEB_SITE 2>/dev/null | \ sed '/catfish-[0-9]/!d;s|.*catfish-||;s|.tar.*||;q' } # Rules to configure and make the package. compile_rules() { ./configure --prefix=/usr && make && make DESTDIR=$install install } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $fs/usr/bin $fs/usr/share/catfish cat > $fs/usr/bin/catfish << EOT #!/bin/sh . /etc/slitaz/applications.conf # use default FILE_MANAGER to open both folders and files cd /usr/share/catfish python catfish.py --large-icons --thumbnails --path=\$HOME \ --fileman=\$FILE_MANAGER --wrapper=\$FILE_MANAGER "\$@" EOT chmod +x $fs/usr/bin/catfish cd $fs/usr/share/catfish cp -a $install/usr/share/catfish/catfish.glade . # minify glade file gzip ./catfish.glade; mv ./catfish.glade.gz catfish.glade # can't copy *.pyc because 'cook' removes it from package! #cp -a $install/usr/share/catfish/catfish.pyc . cp -a $src/catfish.py . # seems catfish --wrapper not works at all, fix it (attention spaces!) sed -i "189 a\ \ self.open_wrapper = self.options.open_wrapper" \ $fs/usr/share/catfish/catfish.py cp -a $install/usr/share/icons $fs/usr/share ln -s ../icons/hicolor/scalable/apps/catfish.svg catfish.svg cp -a $install/usr/share/locale $fs/usr/share ln -s ../locale locale chown -R root:root $fs for ext in glade svg; do find $fs -type f -name '*.'$ext -exec chmod 644 {} \; done }