wok-6.x view pcmanfm/receipt @ rev 11622

asunder, beaver, leafpad, mhwaveedit, pcmanfm: install .desktop file
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Jan 24 21:57:18 2012 +0100 (2012-01-24)
parents d1768332cee0
children e944ad6db488
line source
1 # SliTaz package receipt.
3 PACKAGE="pcmanfm"
4 VERSION="0.5.2"
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 util-linux-ng-uuid libxcb xcb-util expat \
9 zlib fontconfig freetype gtk+ atk cairo pango pixman libpng gamin \
10 startup-notification dbus dbus-glib hal xorg-libICE xorg-libSM xorg-libX11 \
11 xorg-libXau xorg-libXcomposite xorg-libXcursor xorg-libXdamage xorg-libXdmcp \
12 xorg-libXext xorg-libXfixes 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 -p0 < $i && touch done.$(basename $i) || return 1
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 -j1 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/applications
47 cp -a $_pkg/usr/bin $fs/usr
48 cp -a $stuff/applications/pcmanf*.desktop $fs/usr/share/applications
49 cp -a $_pkg/usr/share/mime $fs/usr/share
50 cp -a $_pkg/usr/share/pcmanfm $fs/usr/share
51 rm -rf $fs/usr/share/pcmanfm/icons
52 }
54 post_install()
55 {
56 # update mime-cache
57 echo "Updating mime-types database"
58 update-mime-database $1/usr/share/mime
59 }