wok annotate rox-filer/receipt @ rev 20679
Update some WEB_SITE
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Jan 26 12:26:47 2019 +0100 (2019-01-26) |
parents | 9e01bc6321ea |
children | 19df6dffcea5 |
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" |
pascal@20679 | 10 WEB_SITE="http://rox.sourceforge.net/desktop/ROX-Filer" |
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" |
pankso@10375 | 15 BUILD_DEPENDS="libglade-dev libxml2-dev gtk+-dev shared-mime-info-dev" |
pankso@9746 | 16 |
sygne@998 | 17 # Rules to configure and make the package. |
sygne@998 | 18 compile_rules() |
sygne@998 | 19 { |
pascal@17670 | 20 export LDFLAGS="$LDFLAGS -Wl,--copy-dt-needed-entries -lm" |
sygne@998 | 21 echo "patch" |
pascal@1553 | 22 [ -f done.menu.diff ] || |
pankso@10374 | 23 patch $src/ROX-Filer/src/menu.c $stuff/menu.diff |
pascal@1553 | 24 touch done.menu.diff |
sygne@998 | 25 echo "compile" |
pankso@10373 | 26 # If missing dep compile will block on a read. |
pankso@10373 | 27 echo -e "\t" | $src/ROX-Filer/AppRun --compile |
sygne@998 | 28 echo "mkdir" |
pascal@15600 | 29 mkdir $DESTDIR |
pascal@15600 | 30 cp $src/ROX-Filer/ROX-Filer $DESTDIR/rox-filer |
pascal@15600 | 31 cp $src/ROX-Filer/.DirIcon $DESTDIR/ |
sygne@998 | 32 |
pascal@15600 | 33 mkdir $DESTDIR/Messages |
sygne@998 | 34 for locale in de es fr it |
pankso@9746 | 35 do |
pascal@15600 | 36 cp -r $src/ROX-Filer/Messages/$locale $DESTDIR/Messages |
pankso@9746 | 37 done |
sygne@998 | 38 |
pascal@15600 | 39 cp -r $src/ROX-Filer/images $DESTDIR/ |
sygne@998 | 40 |
pascal@15600 | 41 mkdir $DESTDIR/Help |
pascal@15600 | 42 cp $src/ROX-Filer/Help/*.html $DESTDIR/Help/ |
pascal@15600 | 43 cp $src/ROX-Filer/style.css $DESTDIR/ |
sygne@998 | 44 |
pascal@15600 | 45 cp $src/ROX-Filer/Options.xml $DESTDIR/ |
pascal@15600 | 46 cp $src/ROX-Filer/Templates.glade $DESTDIR/ |
sygne@998 | 47 } |
sygne@998 | 48 |
sygne@998 | 49 # Rules to gen a SliTaz package suitable for Tazpkg. |
sygne@998 | 50 genpkg_rules() |
sygne@998 | 51 { |
sygne@998 | 52 mkdir -p $fs/usr/share/rox-filer |
pascal@15600 | 53 cp -r $install/* $fs/usr/share/rox-filer/ |
pascal@15600 | 54 cp $install/.DirIcon $fs/usr/share/rox-filer/ |
sygne@998 | 55 |
sygne@998 | 56 mkdir -p $fs/usr/bin |
pankso@9746 | 57 cp -r $stuff/rox-filer $fs/usr/bin/ |
sygne@998 | 58 ICI=$(pwd) |
sygne@998 | 59 cd $fs/usr/bin/ |
sygne@998 | 60 ln -s rox-filer rox |
sygne@998 | 61 cd $ICI |
sygne@998 | 62 |
sygne@998 | 63 mkdir -p $fs/usr/lib/openbox |
pankso@9746 | 64 cp $stuff/rox-open-folder-menu.sh $fs/usr/lib/openbox/ |
sygne@998 | 65 |
sygne@998 | 66 strip -s $fs/usr/share/rox-filer/rox-filer |
sygne@998 | 67 } |
sygne@998 | 68 |
sygne@998 | 69 # Post install commands for Tazpkg. |
sygne@998 | 70 # Check /usr/share/icons/ROX |
sygne@998 | 71 post_install() |
sygne@998 | 72 { |
pascal@18730 | 73 if [ -e "$1/usr/share/icons/ROX" ]; then |
sygne@998 | 74 echo "" |
sygne@998 | 75 echo "/usr/share/icons/ROX exists" |
sygne@998 | 76 else |
sygne@998 | 77 echo "" |
sygne@998 | 78 echo "/usr/share/icons/ROX doesn't exists" |
sygne@998 | 79 echo -n "linking /usr/share/icons/ROX to /usr/share/icons/Tango" |
pascal@18730 | 80 ln -s /usr/share/icons/Tango "$1/usr/share/icons/ROX" |
sygne@998 | 81 status |
sygne@998 | 82 fi |
sygne@998 | 83 } |