# HG changeset patch # User Aleksej Bobylev # Date 1429365764 -10800 # Node ID f6642d800b04c1938ddeb28ca0ec2a058a9daafc # Parent c76d30df5ef0da63e7fdc790c13a46f491b7d270 mtpaint: view external using GPicView, print image using Yad, view documentation online using TazWeb. diff -r c76d30df5ef0 -r f6642d800b04 mtpaint/receipt --- a/mtpaint/receipt Sat Apr 18 16:50:04 2015 +0200 +++ b/mtpaint/receipt Sat Apr 18 17:02:44 2015 +0300 @@ -19,6 +19,7 @@ # Rules to configure and make the package. compile_rules() { + patch -p0 < $stuff/mtpaint.patch case "$ARCH" in i?86) ./configure \ @@ -38,7 +39,10 @@ # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { - mkdir -p $fs/usr/share/applications + mkdir -p $fs/usr/share/applications $fs/usr/share/pixmaps $fs/etc/mtpaint cp -a $install/usr/bin $fs/usr + install -m755 -oroot -groot $stuff/mtpaint-doc $fs/usr/bin cp $stuff/*.desktop $fs/usr/share/applications + cp $src/doc/mtpaint.png $fs/usr/share/pixmaps + cp $stuff/mtpaintrc $fs/etc/mtpaint } diff -r c76d30df5ef0 -r f6642d800b04 mtpaint/stuff/mtpaint-doc --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mtpaint/stuff/mtpaint-doc Sat Apr 18 17:02:44 2015 +0300 @@ -0,0 +1,2 @@ +#!/bin/sh +tazweb http://mtpaint.sourceforge.net/handbook/ diff -r c76d30df5ef0 -r f6642d800b04 mtpaint/stuff/mtpaint.patch --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mtpaint/stuff/mtpaint.patch Sat Apr 18 17:02:44 2015 +0300 @@ -0,0 +1,13 @@ +--- src/spawn.c.orig ++++ src/spawn.c +@@ -411,8 +411,8 @@ + {"View EXIF data (leafpad)", "exif %f | leafpad"}, + {"View filesystem data (xterm)", "xterm -hold -e ls -l %f"}, + {"Edit in Gimp", "gimp %f"}, +- {"View in GQview", "gqview %f"}, +- {"Print image", "kprinter %f"}, ++ {"View in GPicView", "gpicview %f"}, ++ {"Print image", "yad --print --type=IMAGE --print-add-preview --filename=%f"}, + {"Email image", "seamonkey -compose attachment=file://%f"}, + {"Send image to Firefox", "firefox %f"}, + {"Send image to OpenOffice", "soffice %f"}, diff -r c76d30df5ef0 -r f6642d800b04 mtpaint/stuff/mtpaintrc --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mtpaint/stuff/mtpaintrc Sat Apr 18 17:02:44 2015 +0300 @@ -0,0 +1,2 @@ +docsBrowser = mtpaint-doc +docsLocation = .