wok-next annotate rox-filer/receipt @ rev 19943
Up xine-lib (1.2.8)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Oct 16 10:16:55 2017 +0200 (2017-10-16) |
parents | 9e01bc6321ea |
children | d6378d455338 |
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" |
pascal@15600 | 8 LICENSE="GPL2" |
sygne@998 | 9 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
sygne@998 | 10 WEB_SITE="http://roscidus.com/desktop/" |
sygne@998 | 11 WGET_URL="http://downloads.sourceforge.net/rox/$TARBALL" |
al@17501 | 12 TAGS="file-manager" |
sygne@998 | 13 |
gokhlayeh@11495 | 14 DEPENDS="gtk+ libglade libxml2 xorg-libXdamage shared-mime-info xorg-libSM" |
pascal@19898 | 15 BUILD_DEPENDS="libglade-dev libxml2-dev gtk+-dev shared-mime-info-dev \ |
pascal@19898 | 16 xorg-libSM-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" |
sygne@998 | 22 echo "patch" |
pascal@1553 | 23 [ -f done.menu.diff ] || |
pankso@10374 | 24 patch $src/ROX-Filer/src/menu.c $stuff/menu.diff |
pascal@1553 | 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 |
pascal@15600 | 31 cp $src/ROX-Filer/ROX-Filer $DESTDIR/rox-filer |
pascal@15600 | 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 |
pankso@9746 | 36 do |
pascal@15600 | 37 cp -r $src/ROX-Filer/Messages/$locale $DESTDIR/Messages |
pankso@9746 | 38 done |
sygne@998 | 39 |
pascal@15600 | 40 cp -r $src/ROX-Filer/images $DESTDIR/ |
sygne@998 | 41 |
pascal@15600 | 42 mkdir $DESTDIR/Help |
pascal@15600 | 43 cp $src/ROX-Filer/Help/*.html $DESTDIR/Help/ |
pascal@15600 | 44 cp $src/ROX-Filer/style.css $DESTDIR/ |
sygne@998 | 45 |
pascal@15600 | 46 cp $src/ROX-Filer/Options.xml $DESTDIR/ |
pascal@15600 | 47 cp $src/ROX-Filer/Templates.glade $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 |
pascal@15600 | 54 cp -r $install/* $fs/usr/share/rox-filer/ |
pascal@15600 | 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 } |