wok-next view rox-filer/receipt @ rev 1066

freeradius: typo
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Jul 15 19:35:08 2008 +0000 (2008-07-15)
parents
children 10710b8535bc
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 . /etc/init.d/rc.functions
68 if [ -e /usr/share/icons/ROX ]; then
69 echo ""
70 echo "/usr/share/icons/ROX exists"
71 else
72 echo ""
73 echo "/usr/share/icons/ROX doesn't exists"
74 echo -n "linking /usr/share/icons/ROX to /usr/share/icons/Tango"
75 ln -s /usr/share/icons/Tango /usr/share/icons/ROX
76 status
77 fi
78 }