wok-current rev 3584
pcmanfm: add tazpkg handler.
pcmanfm/stuff/archiver-tazpkg-support.patch HG: changed
pcmanfm/stuff/icons/Tango/32x32/mimetypes/gnome-mime-application-x-tazpkg.png
pcmanfm/stuff/icons/Tango/32x32/mimetypes/package-x-tazpkg.png HG:
changed pcmanfm/stuff/mime/packages/tazpkg.xml
pcmanfm/stuff/archiver-tazpkg-support.patch HG: changed
pcmanfm/stuff/icons/Tango/32x32/mimetypes/gnome-mime-application-x-tazpkg.png
pcmanfm/stuff/icons/Tango/32x32/mimetypes/package-x-tazpkg.png HG:
changed pcmanfm/stuff/mime/packages/tazpkg.xml
author | Eric Joseph-Alexandre <erjo@slitaz.org> |
---|---|
date | Sat Jun 27 00:24:13 2009 +0200 (2009-06-27) |
parents | aa630ee8aa6f |
children | 32255d6b635f |
files | pcmanfm/receipt pcmanfm/stuff/archiver-tazpkg-support.patch pcmanfm/stuff/icons/Tango/32x32/mimetypes/gnome-mime-application-x-tazpkg.png pcmanfm/stuff/icons/Tango/32x32/mimetypes/package-x-tazpkg.png pcmanfm/stuff/mime/packages/tazpkg.xml |
line diff
1.1 --- a/pcmanfm/receipt Fri Jun 26 18:13:45 2009 +0200 1.2 +++ b/pcmanfm/receipt Sat Jun 27 00:24:13 2009 +0200 1.3 @@ -1,5 +1,7 @@ 1.4 # SliTaz package receipt. 1.5 1.6 +PACKED_SIZE="8.0k" 1.7 +UNPACKED_SIZE="4.0k" 1.8 PACKAGE="pcmanfm" 1.9 VERSION="0.5" 1.10 CATEGORY="system-tools" 1.11 @@ -16,6 +18,15 @@ 1.12 compile_rules() 1.13 { 1.14 cd $src 1.15 + for i in ../stuff/*.patch 1.16 + do 1.17 + if [ -f done.$(basename $i) ]; then 1.18 + continue 1.19 + else 1.20 + patch -p1 -i $i && touch done.$(basename $i) 1.21 + fi 1.22 + done 1.23 + 1.24 ./configure \ 1.25 --prefix=/usr \ 1.26 --mandir=/usr/share/man \ 1.27 @@ -33,4 +44,15 @@ 1.28 cp -a $_pkg/usr/share/mime $fs/usr/share 1.29 cp -a $_pkg/usr/share/pcmanfm $fs/usr/share 1.30 rm -rf $fs/usr/share/pcmanfm/icons 1.31 + 1.32 + cp -a stuff/icons $fs/usr/share 1.33 + cp -a stuff/mime $fs/usr/share 1.34 } 1.35 + 1.36 + 1.37 +post_install() 1.38 +{ 1.39 + # update mime-cache 1.40 + echo "Updating mime-types database" 1.41 + update-mime-database $1/usr/share/mime 1.42 +}
2.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 2.2 +++ b/pcmanfm/stuff/archiver-tazpkg-support.patch Sat Jun 27 00:24:13 2009 +0200 2.3 @@ -0,0 +1,30 @@ 2.4 +--- pcmanfm-0.5.ori/src/ptk/ptk-file-archiver.c Sun May 25 14:59:12 2008 2.5 ++++ pcmanfm-0.5/src/ptk/ptk-file-archiver.c Thu Jun 25 23:28:10 2009 2.6 +@@ -5,11 +5,13 @@ 2.7 + * 2.8 + * 2.9 + * Author: Hong Jen Yee (PCMan) <pcman.tw (AT) gmail.com>, (C) 2006 2.10 +-* 2.11 ++* 2.12 + * Copyright: See COPYING file that comes with this distribution 2.13 + * 2.14 + */ 2.15 + 2.16 ++/* 06-25-2009 Erjo: Add support for tazpkg */ 2.17 ++ 2.18 + #include <glib/gi18n.h> 2.19 + #include <string.h> 2.20 + 2.21 +@@ -55,6 +57,12 @@ 2.22 + "tar -xvf", 2.23 + ".tar", TRUE 2.24 + }, 2.25 ++ { 2.26 ++ "application/x-tazpkg", 2.27 ++ "tazpkg pack", 2.28 ++ "tazpkg extract", 2.29 ++ ".tazpkg", FALSE 2.30 ++ } 2.31 + /* 2.32 + { 2.33 + "application/x-rar",
3.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 3.2 +++ b/pcmanfm/stuff/icons/Tango/32x32/mimetypes/gnome-mime-application-x-tazpkg.png Sat Jun 27 00:24:13 2009 +0200 3.3 @@ -0,0 +1,1 @@ 3.4 +package-x-tazpkg.png 3.5 \ No newline at end of file
4.1 Binary file pcmanfm/stuff/icons/Tango/32x32/mimetypes/package-x-tazpkg.png has changed
5.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 5.2 +++ b/pcmanfm/stuff/mime/packages/tazpkg.xml Sat Jun 27 00:24:13 2009 +0200 5.3 @@ -0,0 +1,9 @@ 5.4 +<?xml version="1.0" encoding="UTF-8"?> 5.5 +<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info"> 5.6 + <mime-type type="application/x-tazpkg"> 5.7 + <comment>SliTaz package</comment> 5.8 + <comment xml:lang="en">SliTaz package</comment> 5.9 + <sub-class-of type="application/x-cpio"/> 5.10 + <glob pattern="*.tazpkg"/> 5.11 + </mime-type> 5.12 +</mime-info>