wok-next view pcmanfm/receipt @ 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
author Eric Joseph-Alexandre <erjo@slitaz.org>
date Sat Jun 27 00:24:13 2009 +0200 (2009-06-27)
parents 9b20db26bb2f
children 32255d6b635f
line source
1 # SliTaz package receipt.
3 PACKED_SIZE="8.0k"
4 UNPACKED_SIZE="4.0k"
5 PACKAGE="pcmanfm"
6 VERSION="0.5"
7 CATEGORY="system-tools"
8 SHORT_DESC="Light and easy to use file manager."
9 MAINTAINER="pankso@slitaz.org"
10 DEPENDS="gtk+ xorg gamin startup-notification dbus dbus-glib hal xorg-libXdamage"
11 BUILD_DEPENDS="gtk+-dev gamin-dev gamin
12 shared-mime-info intltool hal-dev dbus-glib-dev dbus-dev startup-notification-dev"
13 TARBALL="$PACKAGE-$VERSION.tar.gz"
14 WEB_SITE="http://pcmanfm.sourceforge.net/"
15 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 cd $src
21 for i in ../stuff/*.patch
22 do
23 if [ -f done.$(basename $i) ]; then
24 continue
25 else
26 patch -p1 -i $i && touch done.$(basename $i)
27 fi
28 done
30 ./configure \
31 --prefix=/usr \
32 --mandir=/usr/share/man \
33 --enable-hal \
34 $CONFIGURE_ARGS &&
35 make &&
36 make DESTDIR=$PWD/_pkg install
37 }
39 # Rules to gen a SliTaz package suitable for Tazpkg.
40 genpkg_rules()
41 {
42 mkdir -p $fs/usr/share
43 cp -a $_pkg/usr/bin $fs/usr
44 cp -a $_pkg/usr/share/mime $fs/usr/share
45 cp -a $_pkg/usr/share/pcmanfm $fs/usr/share
46 rm -rf $fs/usr/share/pcmanfm/icons
48 cp -a stuff/icons $fs/usr/share
49 cp -a stuff/mime $fs/usr/share
50 }
53 post_install()
54 {
55 # update mime-cache
56 echo "Updating mime-types database"
57 update-mime-database $1/usr/share/mime
58 }