wok view rox-filer/receipt @ rev 1479
madwifi: typo
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Oct 04 14:46:49 2008 +0000 (2008-10-04) |
parents | 54f3481de448 |
children | 65d3dfc87776 |
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+"
9 BUILD_DEPENDS="libglade-dev libxml2-dev gtk+-dev slitaz-dev-pkgs"
10 TARBALL="$PACKAGE-$VERSION.tar.bz2"
11 WEB_SITE="http://roscidus.com/desktop/"
12 WGET_URL="http://downloads.sourceforge.net/rox/$TARBALL"
14 # Rules to configure and make the package.
15 compile_rules()
16 {
17 echo "patch"
18 patch $src/ROX-Filer/src/menu.c stuff/menu.diff
19 echo "compile"
20 $src/ROX-Filer/AppRun --compile
21 echo "mkdir"
22 mkdir $src/_pkg
23 cp $src/ROX-Filer/ROX-Filer $src/_pkg/rox-filer
24 cp $src/ROX-Filer/.DirIcon $src/_pkg/
26 mkdir $src/_pkg/Messages
27 for locale in de es fr it
28 do
29 cp -r $src/ROX-Filer/Messages/$locale $src/_pkg/Messages
30 done
32 cp -r $src/ROX-Filer/images $src/_pkg/
34 mkdir $src/_pkg/Help
35 cp $src/ROX-Filer/Help/*.html $src/_pkg/Help/
36 cp $src/ROX-Filer/style.css $src/_pkg/
38 cp $src/ROX-Filer/Options.xml $src/_pkg/
39 cp $src/ROX-Filer/Templates.glade $src/_pkg/
40 }
42 # Rules to gen a SliTaz package suitable for Tazpkg.
43 genpkg_rules()
44 {
45 mkdir -p $fs/usr/share/rox-filer
46 cp -r $_pkg/* $fs/usr/share/rox-filer/
47 cp $_pkg/.DirIcon $fs/usr/share/rox-filer/
49 mkdir -p $fs/usr/bin
50 cp -r stuff/rox-filer $fs/usr/bin/
51 ICI=$(pwd)
52 cd $fs/usr/bin/
53 ln -s rox-filer rox
54 cd $ICI
56 mkdir -p $fs/usr/lib/openbox
57 cp stuff/rox-open-folder-menu.sh $fs/usr/lib/openbox/
59 strip -s $fs/usr/share/rox-filer/rox-filer
60 }
62 # Post install commands for Tazpkg.
63 # Check /usr/share/icons/ROX
64 post_install()
65 {
66 if [ -e $1/usr/share/icons/ROX ]; then
67 echo ""
68 echo "/usr/share/icons/ROX exists"
69 else
70 echo ""
71 echo "/usr/share/icons/ROX doesn't exists"
72 echo -n "linking /usr/share/icons/ROX to /usr/share/icons/Tango"
73 ln -s /usr/share/icons/Tango $1/usr/share/icons/ROX
74 status
75 fi
76 }