wok-current annotate rox-filer/receipt @ rev 15401
Up: lvm2 (2.02.98)
author | Dominique Corbex <domcox@slitaz.org> |
---|---|
date | Sat Nov 02 21:26:53 2013 +0100 (2013-11-02) |
parents | f4ee6f71888c |
children | de49f29b101e |
rev | line source |
---|---|
sygne@998 | 1 # SliTaz package receipt. |
sygne@998 | 2 |
sygne@998 | 3 PACKAGE="rox-filer" |
sygne@998 | 4 VERSION="2.8" |
sygne@998 | 5 CATEGORY="system-tools" |
sygne@998 | 6 SHORT_DESC="user friendly filer." |
sygne@998 | 7 MAINTAINER="sygne@ombres.eu" |
sygne@998 | 8 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
sygne@998 | 9 WEB_SITE="http://roscidus.com/desktop/" |
sygne@998 | 10 WGET_URL="http://downloads.sourceforge.net/rox/$TARBALL" |
jozee@4972 | 11 TAGS="file-browser file-manager" |
sygne@998 | 12 |
gokhlayeh@11495 | 13 DEPENDS="gtk+ libglade libxml2 xorg-libXdamage shared-mime-info xorg-libSM" |
pankso@10375 | 14 BUILD_DEPENDS="libglade-dev libxml2-dev gtk+-dev shared-mime-info-dev" |
pankso@9746 | 15 |
sygne@998 | 16 # Rules to configure and make the package. |
sygne@998 | 17 compile_rules() |
sygne@998 | 18 { |
pascal@15110 | 19 export LDFLAGS="-Wl,--copy-dt-needed-entries -lm" |
sygne@998 | 20 echo "patch" |
pascal@1553 | 21 [ -f done.menu.diff ] || |
pankso@10374 | 22 patch $src/ROX-Filer/src/menu.c $stuff/menu.diff |
pascal@1553 | 23 touch done.menu.diff |
sygne@998 | 24 echo "compile" |
pankso@10373 | 25 # If missing dep compile will block on a read. |
pankso@10373 | 26 echo -e "\t" | $src/ROX-Filer/AppRun --compile |
sygne@998 | 27 echo "mkdir" |
sygne@998 | 28 mkdir $src/_pkg |
sygne@998 | 29 cp $src/ROX-Filer/ROX-Filer $src/_pkg/rox-filer |
sygne@998 | 30 cp $src/ROX-Filer/.DirIcon $src/_pkg/ |
sygne@998 | 31 |
sygne@998 | 32 mkdir $src/_pkg/Messages |
sygne@998 | 33 for locale in de es fr it |
pankso@9746 | 34 do |
sygne@998 | 35 cp -r $src/ROX-Filer/Messages/$locale $src/_pkg/Messages |
pankso@9746 | 36 done |
sygne@998 | 37 |
sygne@998 | 38 cp -r $src/ROX-Filer/images $src/_pkg/ |
sygne@998 | 39 |
sygne@998 | 40 mkdir $src/_pkg/Help |
sygne@998 | 41 cp $src/ROX-Filer/Help/*.html $src/_pkg/Help/ |
sygne@998 | 42 cp $src/ROX-Filer/style.css $src/_pkg/ |
sygne@998 | 43 |
sygne@998 | 44 cp $src/ROX-Filer/Options.xml $src/_pkg/ |
sygne@998 | 45 cp $src/ROX-Filer/Templates.glade $src/_pkg/ |
sygne@998 | 46 } |
sygne@998 | 47 |
sygne@998 | 48 # Rules to gen a SliTaz package suitable for Tazpkg. |
sygne@998 | 49 genpkg_rules() |
sygne@998 | 50 { |
sygne@998 | 51 mkdir -p $fs/usr/share/rox-filer |
sygne@998 | 52 cp -r $_pkg/* $fs/usr/share/rox-filer/ |
sygne@998 | 53 cp $_pkg/.DirIcon $fs/usr/share/rox-filer/ |
sygne@998 | 54 |
sygne@998 | 55 mkdir -p $fs/usr/bin |
pankso@9746 | 56 cp -r $stuff/rox-filer $fs/usr/bin/ |
sygne@998 | 57 ICI=$(pwd) |
sygne@998 | 58 cd $fs/usr/bin/ |
sygne@998 | 59 ln -s rox-filer rox |
sygne@998 | 60 cd $ICI |
sygne@998 | 61 |
sygne@998 | 62 mkdir -p $fs/usr/lib/openbox |
pankso@9746 | 63 cp $stuff/rox-open-folder-menu.sh $fs/usr/lib/openbox/ |
sygne@998 | 64 |
sygne@998 | 65 strip -s $fs/usr/share/rox-filer/rox-filer |
sygne@998 | 66 } |
sygne@998 | 67 |
sygne@998 | 68 # Post install commands for Tazpkg. |
sygne@998 | 69 # Check /usr/share/icons/ROX |
sygne@998 | 70 post_install() |
sygne@998 | 71 { |
pascal@1137 | 72 if [ -e $1/usr/share/icons/ROX ]; then |
sygne@998 | 73 echo "" |
sygne@998 | 74 echo "/usr/share/icons/ROX exists" |
sygne@998 | 75 else |
sygne@998 | 76 echo "" |
sygne@998 | 77 echo "/usr/share/icons/ROX doesn't exists" |
sygne@998 | 78 echo -n "linking /usr/share/icons/ROX to /usr/share/icons/Tango" |
pascal@1137 | 79 ln -s /usr/share/icons/Tango $1/usr/share/icons/ROX |
sygne@998 | 80 status |
sygne@998 | 81 fi |
sygne@998 | 82 } |