wok annotate rox-filer/receipt @ rev 21845

updated rox packages (2.8 -> 2.11)
author Hans-G?nter Theisgen
date Sun Sep 15 11:06:31 2019 +0100 (2019-09-15)
parents 6135577f4d08
children 394b8ad81c95
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"
Hans-G?nter@21845 6 TAGS="file-manager"
Hans-G?nter@21845 7 SHORT_DESC="User friendly file manager."
sygne@998 8 MAINTAINER="sygne@ombres.eu"
pascal@15600 9 LICENSE="GPL2"
Hans-G?nter@21845 10 WEB_SITE="http://rox.sourceforge.net/desktop/ROX-Filer"
Hans-G?nter@21845 11
sygne@998 12 TARBALL="$PACKAGE-$VERSION.tar.bz2"
Hans-G?nter@21845 13 WGET_URL="$SF_MIRROR/rox/$TARBALL"
sygne@998 14
Hans-G?nter@21845 15 DEPENDS="gtk+ libglade libxml2 shared-mime-info xorg-libSM xorg-libXdamage"
Hans-G?nter@21845 16 BUILD_DEPENDS="gtk+-dev libglade-dev libxml2-dev shared-mime-info-dev"
pankso@9746 17
sygne@998 18 # Rules to configure and make the package.
sygne@998 19 compile_rules()
sygne@998 20 {
pascal@17670 21 export LDFLAGS="$LDFLAGS -Wl,--copy-dt-needed-entries -lm"
Hans-G?nter@21845 22 # echo "patch 2.8"
Hans-G?nter@21845 23 # [ -f done.menu.diff ] ||
Hans-G?nter@21845 24 # patch $src/ROX-Filer/src/menu.c $stuff/menu.diff
Hans-G?nter@21845 25 # touch done.menu.diff
sygne@998 26 echo "compile"
pankso@10373 27 # If missing dep compile will block on a read.
pankso@10373 28 echo -e "\t" | $src/ROX-Filer/AppRun --compile
sygne@998 29 echo "mkdir"
pascal@15600 30 mkdir $DESTDIR
Hans-G?nter@21845 31 cp $src/ROX-Filer/ROX-Filer $DESTDIR/rox-filer
Hans-G?nter@21845 32 cp $src/ROX-Filer/.DirIcon $DESTDIR/
sygne@998 33
pascal@15600 34 mkdir $DESTDIR/Messages
sygne@998 35 for locale in de es fr it
Hans-G?nter@21845 36 do
pascal@15600 37 cp -r $src/ROX-Filer/Messages/$locale $DESTDIR/Messages
Hans-G?nter@21845 38 done
sygne@998 39
Hans-G?nter@21845 40 cp -r $src/ROX-Filer/images $DESTDIR/
sygne@998 41
pascal@15600 42 mkdir $DESTDIR/Help
Hans-G?nter@21845 43 cp $src/ROX-Filer/Help/*.html $DESTDIR/Help/
Hans-G?nter@21845 44 cp $src/ROX-Filer/style.css $DESTDIR/
sygne@998 45
Hans-G?nter@21845 46 cp $src/ROX-Filer/Options.xml $DESTDIR/
Hans-G?nter@21845 47 cp $src/ROX-Filer/Templates.ui $DESTDIR/
sygne@998 48 }
sygne@998 49
sygne@998 50 # Rules to gen a SliTaz package suitable for Tazpkg.
sygne@998 51 genpkg_rules()
sygne@998 52 {
sygne@998 53 mkdir -p $fs/usr/share/rox-filer
Hans-G?nter@21845 54 cp -r $install/* $fs/usr/share/rox-filer/
Hans-G?nter@21845 55 cp $install/.DirIcon $fs/usr/share/rox-filer/
sygne@998 56
sygne@998 57 mkdir -p $fs/usr/bin
pankso@9746 58 cp -r $stuff/rox-filer $fs/usr/bin/
sygne@998 59 ICI=$(pwd)
sygne@998 60 cd $fs/usr/bin/
sygne@998 61 ln -s rox-filer rox
sygne@998 62 cd $ICI
sygne@998 63
sygne@998 64 mkdir -p $fs/usr/lib/openbox
pankso@9746 65 cp $stuff/rox-open-folder-menu.sh $fs/usr/lib/openbox/
sygne@998 66
sygne@998 67 strip -s $fs/usr/share/rox-filer/rox-filer
sygne@998 68 }
sygne@998 69
sygne@998 70 # Post install commands for Tazpkg.
sygne@998 71 # Check /usr/share/icons/ROX
sygne@998 72 post_install()
sygne@998 73 {
pascal@18730 74 if [ -e "$1/usr/share/icons/ROX" ]; then
sygne@998 75 echo ""
sygne@998 76 echo "/usr/share/icons/ROX exists"
sygne@998 77 else
sygne@998 78 echo ""
sygne@998 79 echo "/usr/share/icons/ROX doesn't exists"
sygne@998 80 echo -n "linking /usr/share/icons/ROX to /usr/share/icons/Tango"
pascal@18730 81 ln -s /usr/share/icons/Tango "$1/usr/share/icons/ROX"
sygne@998 82 status
sygne@998 83 fi
sygne@998 84 }