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

Up: xorg-libXau, xorg-libXaw + clean receipt
author Christophe Lincoln <pankso@slitaz.org>
date Tue Apr 24 23:28:40 2012 +0200 (2012-04-24)
parents 0a6b5118575a
children f73ab8941355
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-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 hicolor-icon-theme"
14 BUILD_DEPENDS="gtk+-dev gamin-dev gamin shared-mime-info intltool hal-dev \
15 dbus-glib-dev dbus-dev startup-notification-dev libxcb-dev xcb-util-dev \
16 xcb-util startup-notification"
17 TARBALL="$PACKAGE-$VERSION.tar.bz2"
18 WEB_SITE="http://pcmanfm.sourceforge.net/"
19 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
21 # Rules to configure and make the package.
22 compile_rules()
23 {
24 cd $src
25 for i in $stuff/*.patch
26 do
27 if [ -f done.$(basename $i) ]; then
28 continue
29 else
30 patch -p0 < $i && touch done.$(basename $i) || return 1
31 fi
32 done
34 cp $stuff/fr.po $src/po
36 ./configure \
37 --prefix=/usr \
38 --mandir=/usr/share/man \
39 --enable-hal \
40 $CONFIGURE_ARGS &&
41 make &&
42 make -j1 DESTDIR=$PWD/_pkg install
43 }
45 # Rules to gen a SliTaz package suitable for Tazpkg.
46 genpkg_rules()
47 {
48 mkdir -p $fs/usr/share/applications
49 cp -a $_pkg/usr/bin $fs/usr
50 cp -a $_pkg/usr/share/mime $fs/usr/share
51 cp -a $_pkg/usr/share/pcmanfm $fs/usr/share
52 rm -rf $fs/usr/share/pcmanfm/icons
53 }
55 post_install()
56 {
57 # update mime-cache
58 echo "Updating mime-types database"
59 chroot "$1/" /usr/bin/update-mime-database /usr/share/mime
60 }