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

Cleaning is almost finished... I should proceed to upgrades.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Nov 02 14:15:08 2018 +0200 (2018-11-02)
parents f48456621a9d
children ad449ad4a1a5
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="devel@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="http://rox.sourceforge.net/desktop/"
11 TARBALL="$PACKAGE-$VERSION.tar.bz2"
12 WGET_URL="$SF_MIRROR/rox/$TARBALL"
14 BUILD_DEPENDS="libglade-dev libxml2-dev gtk2-dev shared-mime-info-dev \
15 xorg-libSM-dev"
17 compile_rules() {
18 export LDFLAGS="$LDFLAGS -Wl,--copy-dt-needed-entries -lm"
19 echo "compile"
20 # If missing dep compile will block on a read.
21 echo -e "\t" | $src/ROX-Filer/AppRun --compile
22 echo "mkdir"
23 mkdir $install
24 cp $src/ROX-Filer/ROX-Filer $install/rox-filer
25 cp $src/ROX-Filer/.DirIcon $install/
27 mkdir $install/Messages
28 for locale in de es fr it
29 do
30 cp -r $src/ROX-Filer/Messages/$locale $install/Messages
31 done
33 cp -r $src/ROX-Filer/images $install/
35 mkdir $install/Help
36 cp $src/ROX-Filer/Help/*.html $install/Help/
37 cp $src/ROX-Filer/style.css $install/
39 cp $src/ROX-Filer/Options.xml $install/
40 cp $src/ROX-Filer/Templates.glade $install/
41 }
43 genpkg_rules() {
44 mkdir -p $fs/usr/share/rox-filer
45 cp -r $install/* $fs/usr/share/rox-filer/
46 cp $install/.DirIcon $fs/usr/share/rox-filer/
48 mkdir -p $fs/usr/bin
49 cp -r $stuff/rox-filer $fs/usr/bin/
50 ICI=$(pwd)
51 cd $fs/usr/bin/
52 ln -s rox-filer rox
53 cd $ICI
55 mkdir -p $fs/usr/lib/openbox
56 cp $stuff/rox-open-folder-menu.sh $fs/usr/lib/openbox/
58 strip -s $fs/usr/share/rox-filer/rox-filer
59 DEPENDS="gtk2 libglade libxml2 xorg-libXdamage shared-mime-info xorg-libSM"
60 TAGS="file-manager"
61 }
63 # Check /usr/share/icons/ROX
64 post_install() {
65 if [ -e "$1/usr/share/icons/ROX" ]; then
66 echo ""
67 echo "/usr/share/icons/ROX exists"
68 else
69 echo ""
70 echo "/usr/share/icons/ROX doesn't exists"
71 echo -n "linking /usr/share/icons/ROX to /usr/share/icons/Tango"
72 ln -s /usr/share/icons/Tango "$1/usr/share/icons/ROX"
73 status
74 fi
75 }