wok view pcmanfm-legacy/receipt @ rev 16704

mplayer-opt: typo in package name
author Aleksej Bobylev <al.bobylev@gmail.com>
date Wed May 28 12:02:32 2014 +0300 (2014-05-28)
parents 380ffe05937a
children 5d53e8ccbc8d
line source
1 # SliTaz package receipt.
3 PACKAGE="pcmanfm-legacy"
4 VERSION="0.5.2"
5 SOURCE="pcmanfm"
6 CATEGORY="system-tools"
7 SHORT_DESC="Light and easy to use file manager."
8 MAINTAINER="pankso@slitaz.org"
9 LICENSE="GPL2"
10 TARBALL="$SOURCE-$VERSION.tar.bz2"
11 WEB_SITE="http://pcmanfm.sourceforge.net/"
12 WGET_URL="$SF_MIRROR/$SOURCE/$TARBALL"
14 DEPENDS="glibc-base glib libgio util-linux-uuid libxcb xcb-util expat \
15 zlib fontconfig freetype gtk+ atk cairo pango pixman libpng gamin \
16 startup-notification dbus dbus-glib hal xorg-libICE xorg-libSM xorg-libX11 \
17 xorg-libXau xorg-libXcomposite xorg-libXcursor xorg-libXdamage xorg-libXdmcp \
18 xorg-libXext xorg-libXfixes xorg-libXinerama xorg-libXrender \
19 hicolor-icon-theme"
20 BUILD_DEPENDS="gtk+-dev gamin-dev gamin shared-mime-info intltool hal-dev \
21 dbus-glib-dev dbus-dev startup-notification-dev libxcb-dev xcb-util-dev \
22 xcb-util"
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 # Binutils 2.22 break many packages build without LDFLAGS set correctly.
28 export LDFLAGS="-Wl,--copy-dt-needed-entries -lXt"
30 cd $src
31 for i in $stuff/*.patch
32 do
33 if [ -f done.$(basename $i) ]; then
34 continue
35 else
36 patch -p0 < $i && touch done.$(basename $i) || return 1
37 fi
38 done
40 cp $stuff/fr.po $src/po
42 ./configure \
43 --enable-hal \
44 $CONFIGURE_ARGS &&
45 make && make install
46 }
48 # Rules to gen a SliTaz package suitable for Tazpkg.
49 genpkg_rules()
50 {
51 mkdir -p $fs/usr/share/applications $fs/etc/xdg
53 cp -a $install/usr/bin $fs/usr
54 #cp -a $install/usr/share/mime $fs/usr/share
55 cp -a $install/usr/share/pcmanfm $fs/usr/share
56 rm -rf $fs/usr/share/pcmanfm/icons
58 # XDG autostart desktop file (lxsession will use it automaticaly)
59 cp -a $stuff/autostart $fs/etc/xdg
60 }
62 post_install()
63 {
64 # update mime-cache
65 echo "Updating mime-types database"
66 chroot "$1/" /usr/bin/update-mime-database /usr/share/mime
67 }