wok-next view rox-filer/receipt @ rev 20529
Up libblockdev (2.16), nspr (4.18), openssh (7.6p1), udisks2 (2.7.6).
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Sat Mar 24 15:55:55 2018 +0200 (2018-03-24) |
parents | 9e01bc6321ea |
children | d6378d455338 |
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 \
16 xorg-libSM-dev"
18 # Rules to configure and make the package.
19 compile_rules()
20 {
21 export LDFLAGS="$LDFLAGS -Wl,--copy-dt-needed-entries -lm"
22 echo "patch"
23 [ -f done.menu.diff ] ||
24 patch $src/ROX-Filer/src/menu.c $stuff/menu.diff
25 touch done.menu.diff
26 echo "compile"
27 # If missing dep compile will block on a read.
28 echo -e "\t" | $src/ROX-Filer/AppRun --compile
29 echo "mkdir"
30 mkdir $DESTDIR
31 cp $src/ROX-Filer/ROX-Filer $DESTDIR/rox-filer
32 cp $src/ROX-Filer/.DirIcon $DESTDIR/
34 mkdir $DESTDIR/Messages
35 for locale in de es fr it
36 do
37 cp -r $src/ROX-Filer/Messages/$locale $DESTDIR/Messages
38 done
40 cp -r $src/ROX-Filer/images $DESTDIR/
42 mkdir $DESTDIR/Help
43 cp $src/ROX-Filer/Help/*.html $DESTDIR/Help/
44 cp $src/ROX-Filer/style.css $DESTDIR/
46 cp $src/ROX-Filer/Options.xml $DESTDIR/
47 cp $src/ROX-Filer/Templates.glade $DESTDIR/
48 }
50 # Rules to gen a SliTaz package suitable for Tazpkg.
51 genpkg_rules()
52 {
53 mkdir -p $fs/usr/share/rox-filer
54 cp -r $install/* $fs/usr/share/rox-filer/
55 cp $install/.DirIcon $fs/usr/share/rox-filer/
57 mkdir -p $fs/usr/bin
58 cp -r $stuff/rox-filer $fs/usr/bin/
59 ICI=$(pwd)
60 cd $fs/usr/bin/
61 ln -s rox-filer rox
62 cd $ICI
64 mkdir -p $fs/usr/lib/openbox
65 cp $stuff/rox-open-folder-menu.sh $fs/usr/lib/openbox/
67 strip -s $fs/usr/share/rox-filer/rox-filer
68 }
70 # Post install commands for Tazpkg.
71 # Check /usr/share/icons/ROX
72 post_install()
73 {
74 if [ -e "$1/usr/share/icons/ROX" ]; then
75 echo ""
76 echo "/usr/share/icons/ROX exists"
77 else
78 echo ""
79 echo "/usr/share/icons/ROX doesn't exists"
80 echo -n "linking /usr/share/icons/ROX to /usr/share/icons/Tango"
81 ln -s /usr/share/icons/Tango "$1/usr/share/icons/ROX"
82 status
83 fi
84 }