wok-current view rox-filer/receipt @ rev 9173

wvstreams: needs -j1
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Mar 08 18:20:44 2011 +0100 (2011-03-08)
parents 39a218ff0972
children 9f9385b879d3
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 DEPENDS="gtk+ libglade xorg-libXdamage"
9 BUILD_DEPENDS="libglade-dev libxml2-dev gtk+-dev slitaz-dev-pkgs shared-mime-info"
10 TARBALL="$PACKAGE-$VERSION.tar.bz2"
11 WEB_SITE="http://roscidus.com/desktop/"
12 WGET_URL="http://downloads.sourceforge.net/rox/$TARBALL"
13 TAGS="file-browser file-manager"
15 # Rules to configure and make the package.
16 compile_rules()
17 {
18 echo "patch"
19 [ -f done.menu.diff ] ||
20 patch $src/ROX-Filer/src/menu.c stuff/menu.diff
21 touch done.menu.diff
22 echo "compile"
23 $src/ROX-Filer/AppRun --compile
24 echo "mkdir"
25 mkdir $src/_pkg
26 cp $src/ROX-Filer/ROX-Filer $src/_pkg/rox-filer
27 cp $src/ROX-Filer/.DirIcon $src/_pkg/
29 mkdir $src/_pkg/Messages
30 for locale in de es fr it
31 do
32 cp -r $src/ROX-Filer/Messages/$locale $src/_pkg/Messages
33 done
35 cp -r $src/ROX-Filer/images $src/_pkg/
37 mkdir $src/_pkg/Help
38 cp $src/ROX-Filer/Help/*.html $src/_pkg/Help/
39 cp $src/ROX-Filer/style.css $src/_pkg/
41 cp $src/ROX-Filer/Options.xml $src/_pkg/
42 cp $src/ROX-Filer/Templates.glade $src/_pkg/
43 }
45 # Rules to gen a SliTaz package suitable for Tazpkg.
46 genpkg_rules()
47 {
48 mkdir -p $fs/usr/share/rox-filer
49 cp -r $_pkg/* $fs/usr/share/rox-filer/
50 cp $_pkg/.DirIcon $fs/usr/share/rox-filer/
52 mkdir -p $fs/usr/bin
53 cp -r stuff/rox-filer $fs/usr/bin/
54 ICI=$(pwd)
55 cd $fs/usr/bin/
56 ln -s rox-filer rox
57 cd $ICI
59 mkdir -p $fs/usr/lib/openbox
60 cp stuff/rox-open-folder-menu.sh $fs/usr/lib/openbox/
62 strip -s $fs/usr/share/rox-filer/rox-filer
63 }
65 # Post install commands for Tazpkg.
66 # Check /usr/share/icons/ROX
67 post_install()
68 {
69 if [ -e $1/usr/share/icons/ROX ]; then
70 echo ""
71 echo "/usr/share/icons/ROX exists"
72 else
73 echo ""
74 echo "/usr/share/icons/ROX doesn't exists"
75 echo -n "linking /usr/share/icons/ROX to /usr/share/icons/Tango"
76 ln -s /usr/share/icons/Tango $1/usr/share/icons/ROX
77 status
78 fi
79 }