wok-next view pcmanfm/receipt @ rev 3864

Up: linux (2.6.30.4)
author Christophe Lincoln <pankso@slitaz.org>
date Fri Aug 07 23:18:34 2009 +0200 (2009-08-07)
parents bbc5a7a78a11
children ce5a9bc5dc95
line source
1 # SliTaz package receipt.
3 PACKAGE="pcmanfm"
4 VERSION="0.5.1"
5 CATEGORY="system-tools"
6 SHORT_DESC="Light and easy to use file manager."
7 MAINTAINER="pankso@slitaz.org"
8 DEPENDS="glibc-base glib libgio libuuid libxcb xcb-util expat zlib fontconfig \
9 freetype gtk+ atk cairo pango pixman libpng gamin startup-notification dbus dbus-glib hal \
10 xorg-libICE xorg-libSM xorg-libX11 xorg-libXau xorg-libXcomposite \
11 xorg-libXcursor xorg-libXdamage xorg-libXdmcp xorg-libXext xorg-libXfixes \
12 xorg-libXinerama xorg-libXrender"
13 BUILD_DEPENDS="gtk+-dev gamin-dev gamin shared-mime-info intltool hal-dev \
14 dbus-glib-dev dbus-dev startup-notification-dev libxcb-dev xcb-util-dev"
15 TARBALL="$PACKAGE-$VERSION.tar.bz2"
16 WEB_SITE="http://pcmanfm.sourceforge.net/"
17 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
19 # Rules to configure and make the package.
20 compile_rules()
21 {
22 cd $src
23 for i in ../stuff/*.patch
24 do
25 if [ -f done.$(basename $i) ]; then
26 continue
27 else
28 patch -p1 -i $i && touch done.$(basename $i)
29 fi
30 done
32 cp ../stuff/fr.po $src/po
34 ./configure \
35 --prefix=/usr \
36 --mandir=/usr/share/man \
37 --enable-hal \
38 $CONFIGURE_ARGS &&
39 make &&
40 make DESTDIR=$PWD/_pkg install
41 }
43 # Rules to gen a SliTaz package suitable for Tazpkg.
44 genpkg_rules()
45 {
46 mkdir -p $fs/usr/share
47 cp -a $_pkg/usr/bin $fs/usr
48 cp -a $_pkg/usr/share/mime $fs/usr/share
49 cp -a $_pkg/usr/share/pcmanfm $fs/usr/share
50 rm -rf $fs/usr/share/pcmanfm/icons
52 cp -a stuff/icons $fs/usr/share
53 cp -a stuff/mime $fs/usr/share
54 }
57 post_install()
58 {
59 # update mime-cache
60 echo "Updating mime-types database"
61 update-mime-database $1/usr/share/mime
62 }