wok-next view pcmanfm-legacy/receipt @ rev 20454

Choose between libpng16 and libpng12
author Aleksej Bobylev <al.bobylev@gmail.com>
date Wed Feb 28 17:32:31 2018 +0200 (2018-02-28)
parents 7eb047d2b438
children 10df65db91ad
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 util-linux-uuid xorg-libxcb xorg-xcb-util expat \
16 zlib fontconfig freetype gtk+ atk cairo pango xorg-pixman libpng16 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 shared-mime-info"
21 BUILD_DEPENDS="gtk+-dev gamin-dev gamin shared-mime-info intltool hal-dev \
22 dbus-glib-dev dbus-dev startup-notification-dev xorg-libxcb-dev xorg-xcb-util-dev \
23 xorg-xcb-util xorg-libX11-dev xorg-libXt-dev"
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 }