wok-next annotate rox-filer/receipt @ rev 13522

xterm+ru(.desktop); added gsettings-desktop-schemas & metacity
author Aleksej Bobylev <al.bobylev@gmail.com>
date Sat Oct 20 01:25:03 2012 +0000 (2012-10-20)
parents 65309b24902c
children 1ae5963f23df
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 {
sygne@998 19 echo "patch"
pascal@1553 20 [ -f done.menu.diff ] ||
pankso@10374 21 patch $src/ROX-Filer/src/menu.c $stuff/menu.diff
pascal@1553 22 touch done.menu.diff
sygne@998 23 echo "compile"
pankso@10373 24 # If missing dep compile will block on a read.
pankso@10373 25 echo -e "\t" | $src/ROX-Filer/AppRun --compile
sygne@998 26 echo "mkdir"
sygne@998 27 mkdir $src/_pkg
sygne@998 28 cp $src/ROX-Filer/ROX-Filer $src/_pkg/rox-filer
sygne@998 29 cp $src/ROX-Filer/.DirIcon $src/_pkg/
sygne@998 30
sygne@998 31 mkdir $src/_pkg/Messages
sygne@998 32 for locale in de es fr it
pankso@9746 33 do
sygne@998 34 cp -r $src/ROX-Filer/Messages/$locale $src/_pkg/Messages
pankso@9746 35 done
sygne@998 36
sygne@998 37 cp -r $src/ROX-Filer/images $src/_pkg/
sygne@998 38
sygne@998 39 mkdir $src/_pkg/Help
sygne@998 40 cp $src/ROX-Filer/Help/*.html $src/_pkg/Help/
sygne@998 41 cp $src/ROX-Filer/style.css $src/_pkg/
sygne@998 42
sygne@998 43 cp $src/ROX-Filer/Options.xml $src/_pkg/
sygne@998 44 cp $src/ROX-Filer/Templates.glade $src/_pkg/
sygne@998 45 }
sygne@998 46
sygne@998 47 # Rules to gen a SliTaz package suitable for Tazpkg.
sygne@998 48 genpkg_rules()
sygne@998 49 {
sygne@998 50 mkdir -p $fs/usr/share/rox-filer
sygne@998 51 cp -r $_pkg/* $fs/usr/share/rox-filer/
sygne@998 52 cp $_pkg/.DirIcon $fs/usr/share/rox-filer/
sygne@998 53
sygne@998 54 mkdir -p $fs/usr/bin
pankso@9746 55 cp -r $stuff/rox-filer $fs/usr/bin/
sygne@998 56 ICI=$(pwd)
sygne@998 57 cd $fs/usr/bin/
sygne@998 58 ln -s rox-filer rox
sygne@998 59 cd $ICI
sygne@998 60
sygne@998 61 mkdir -p $fs/usr/lib/openbox
pankso@9746 62 cp $stuff/rox-open-folder-menu.sh $fs/usr/lib/openbox/
sygne@998 63
sygne@998 64 strip -s $fs/usr/share/rox-filer/rox-filer
sygne@998 65 }
sygne@998 66
sygne@998 67 # Post install commands for Tazpkg.
sygne@998 68 # Check /usr/share/icons/ROX
sygne@998 69 post_install()
sygne@998 70 {
pascal@1137 71 if [ -e $1/usr/share/icons/ROX ]; then
sygne@998 72 echo ""
sygne@998 73 echo "/usr/share/icons/ROX exists"
sygne@998 74 else
sygne@998 75 echo ""
sygne@998 76 echo "/usr/share/icons/ROX doesn't exists"
sygne@998 77 echo -n "linking /usr/share/icons/ROX to /usr/share/icons/Tango"
pascal@1137 78 ln -s /usr/share/icons/Tango $1/usr/share/icons/ROX
sygne@998 79 status
sygne@998 80 fi
sygne@998 81 }