wok-6.x view rox-filer/receipt @ rev 17670

Add missing -ltinfo
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Feb 17 09:42:47 2015 +0100 (2015-02-17)
parents 5d53e8ccbc8d
children 9e01bc6321ea
line source
1 # SliTaz package receipt.
3 PACKAGE="rox-filer"
4 VERSION="2.8"
5 CATEGORY="system-tools"
6 SHORT_DESC="user friendly filer."
7 MAINTAINER="sygne@ombres.eu"
8 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.bz2"
10 WEB_SITE="http://roscidus.com/desktop/"
11 WGET_URL="http://downloads.sourceforge.net/rox/$TARBALL"
12 TAGS="file-manager"
14 DEPENDS="gtk+ libglade libxml2 xorg-libXdamage shared-mime-info xorg-libSM"
15 BUILD_DEPENDS="libglade-dev libxml2-dev gtk+-dev shared-mime-info-dev"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 export LDFLAGS="$LDFLAGS -Wl,--copy-dt-needed-entries -lm"
21 echo "patch"
22 [ -f done.menu.diff ] ||
23 patch $src/ROX-Filer/src/menu.c $stuff/menu.diff
24 touch done.menu.diff
25 echo "compile"
26 # If missing dep compile will block on a read.
27 echo -e "\t" | $src/ROX-Filer/AppRun --compile
28 echo "mkdir"
29 mkdir $DESTDIR
30 cp $src/ROX-Filer/ROX-Filer $DESTDIR/rox-filer
31 cp $src/ROX-Filer/.DirIcon $DESTDIR/
33 mkdir $DESTDIR/Messages
34 for locale in de es fr it
35 do
36 cp -r $src/ROX-Filer/Messages/$locale $DESTDIR/Messages
37 done
39 cp -r $src/ROX-Filer/images $DESTDIR/
41 mkdir $DESTDIR/Help
42 cp $src/ROX-Filer/Help/*.html $DESTDIR/Help/
43 cp $src/ROX-Filer/style.css $DESTDIR/
45 cp $src/ROX-Filer/Options.xml $DESTDIR/
46 cp $src/ROX-Filer/Templates.glade $DESTDIR/
47 }
49 # Rules to gen a SliTaz package suitable for Tazpkg.
50 genpkg_rules()
51 {
52 mkdir -p $fs/usr/share/rox-filer
53 cp -r $install/* $fs/usr/share/rox-filer/
54 cp $install/.DirIcon $fs/usr/share/rox-filer/
56 mkdir -p $fs/usr/bin
57 cp -r $stuff/rox-filer $fs/usr/bin/
58 ICI=$(pwd)
59 cd $fs/usr/bin/
60 ln -s rox-filer rox
61 cd $ICI
63 mkdir -p $fs/usr/lib/openbox
64 cp $stuff/rox-open-folder-menu.sh $fs/usr/lib/openbox/
66 strip -s $fs/usr/share/rox-filer/rox-filer
67 }
69 # Post install commands for Tazpkg.
70 # Check /usr/share/icons/ROX
71 post_install()
72 {
73 if [ -e $1/usr/share/icons/ROX ]; then
74 echo ""
75 echo "/usr/share/icons/ROX exists"
76 else
77 echo ""
78 echo "/usr/share/icons/ROX doesn't exists"
79 echo -n "linking /usr/share/icons/ROX to /usr/share/icons/Tango"
80 ln -s /usr/share/icons/Tango $1/usr/share/icons/ROX
81 status
82 fi
83 }