wok view pcmanfm-legacy/receipt @ rev 19199

gucharmap: fix packaging
author Aleksej Bobylev <al.bobylev@gmail.com>
date Thu Jun 09 00:34:10 2016 +0300 (2016-06-09)
parents 17e313b5b9c1
children 970c5ec9a60a
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"
13 TAGS="file-manager"
15 DEPENDS="glibc-base glib libgio util-linux-uuid libxcb xcb-util expat \
16 zlib fontconfig freetype gtk+ atk cairo pango pixman libpng gamin \
17 startup-notification dbus dbus-glib hal xorg-libICE xorg-libSM xorg-libX11 \
18 xorg-libXau xorg-libXcomposite xorg-libXcursor xorg-libXdamage xorg-libXdmcp \
19 xorg-libXext xorg-libXfixes xorg-libXinerama xorg-libXrender \
20 hicolor-icon-theme"
21 BUILD_DEPENDS="gtk+-dev gamin-dev gamin shared-mime-info intltool hal-dev \
22 dbus-glib-dev dbus-dev startup-notification-dev libxcb-dev xcb-util-dev \
23 xcb-util"
25 # Rules to configure and make the package.
26 compile_rules()
27 {
28 # Binutils 2.22 break many packages build without LDFLAGS set correctly.
29 export LDFLAGS="$LDFLAGS -Wl,--copy-dt-needed-entries -lXt"
31 cd $src
32 for i in $stuff/*.patch
33 do
34 if [ -f done.$(basename $i) ]; then
35 continue
36 else
37 patch -p0 < $i && touch done.$(basename $i) || return 1
38 fi
39 done
41 cp $stuff/fr.po $src/po
43 ./configure \
44 --enable-hal \
45 $CONFIGURE_ARGS &&
46 make && make -j 1 install
47 }
49 # Rules to gen a SliTaz package suitable for Tazpkg.
50 genpkg_rules()
51 {
52 mkdir -p $fs/usr/share/applications $fs/etc/xdg
54 cp -a $install/usr/bin $fs/usr
55 #cp -a $install/usr/share/mime $fs/usr/share
56 cp -a $install/usr/share/pcmanfm $fs/usr/share
57 rm -rf $fs/usr/share/pcmanfm/icons
59 # XDG autostart desktop file (lxsession will use it automaticaly)
60 cp -a $stuff/autostart $fs/etc/xdg
61 }
63 post_install()
64 {
65 # update mime-cache
66 echo "Updating mime-types database"
67 chroot "$1/" /usr/bin/update-mime-database /usr/share/mime
68 }