wok annotate pcmanfm/receipt @ rev 3722

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