wok-6.x annotate rox-filer/receipt @ rev 25126
updated apulse (0.1.12 -> 0.1.13)
author | Hans-G?nter Theisgen |
---|---|
date | Tue Jun 28 16:35:11 2022 +0100 (2022-06-28) |
parents | 394b8ad81c95 |
children | b0069c845544 |
rev | line source |
---|---|
sygne@998 | 1 # SliTaz package receipt. |
sygne@998 | 2 |
sygne@998 | 3 PACKAGE="rox-filer" |
Hans-G?nter@21846 | 4 VERSION="2.11" |
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 |
pascal@24348 | 18 # What is the latest version available today? |
pascal@24348 | 19 current_version() |
pascal@24348 | 20 { |
pascal@24348 | 21 wget -O - https://sourceforge.net/projects/rox/files/rox/ 2>/dev/null | \ |
pascal@24348 | 22 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|' | sort -Vr | sed q | xargs wget -O - 2>/dev/null | \ |
pascal@24348 | 23 sed '/scope="row/!d;s|.*/rox/||;s|/.*||;q' |
pascal@24348 | 24 } |
pascal@24348 | 25 |
sygne@998 | 26 # Rules to configure and make the package. |
sygne@998 | 27 compile_rules() |
sygne@998 | 28 { |
pascal@17670 | 29 export LDFLAGS="$LDFLAGS -Wl,--copy-dt-needed-entries -lm" |
Hans-G?nter@21845 | 30 # echo "patch 2.8" |
Hans-G?nter@21845 | 31 # [ -f done.menu.diff ] || |
Hans-G?nter@21845 | 32 # patch $src/ROX-Filer/src/menu.c $stuff/menu.diff |
Hans-G?nter@21845 | 33 # touch done.menu.diff |
sygne@998 | 34 echo "compile" |
pankso@10373 | 35 # If missing dep compile will block on a read. |
pankso@10373 | 36 echo -e "\t" | $src/ROX-Filer/AppRun --compile |
sygne@998 | 37 echo "mkdir" |
pascal@15600 | 38 mkdir $DESTDIR |
Hans-G?nter@21845 | 39 cp $src/ROX-Filer/ROX-Filer $DESTDIR/rox-filer |
Hans-G?nter@21845 | 40 cp $src/ROX-Filer/.DirIcon $DESTDIR/ |
sygne@998 | 41 |
pascal@15600 | 42 mkdir $DESTDIR/Messages |
sygne@998 | 43 for locale in de es fr it |
Hans-G?nter@21845 | 44 do |
pascal@15600 | 45 cp -r $src/ROX-Filer/Messages/$locale $DESTDIR/Messages |
Hans-G?nter@21845 | 46 done |
sygne@998 | 47 |
Hans-G?nter@21845 | 48 cp -r $src/ROX-Filer/images $DESTDIR/ |
sygne@998 | 49 |
pascal@15600 | 50 mkdir $DESTDIR/Help |
Hans-G?nter@21845 | 51 cp $src/ROX-Filer/Help/*.html $DESTDIR/Help/ |
Hans-G?nter@21845 | 52 cp $src/ROX-Filer/style.css $DESTDIR/ |
sygne@998 | 53 |
Hans-G?nter@21845 | 54 cp $src/ROX-Filer/Options.xml $DESTDIR/ |
Hans-G?nter@21845 | 55 cp $src/ROX-Filer/Templates.ui $DESTDIR/ |
sygne@998 | 56 } |
sygne@998 | 57 |
sygne@998 | 58 # Rules to gen a SliTaz package suitable for Tazpkg. |
sygne@998 | 59 genpkg_rules() |
sygne@998 | 60 { |
sygne@998 | 61 mkdir -p $fs/usr/share/rox-filer |
Hans-G?nter@21845 | 62 cp -r $install/* $fs/usr/share/rox-filer/ |
Hans-G?nter@21845 | 63 cp $install/.DirIcon $fs/usr/share/rox-filer/ |
sygne@998 | 64 |
sygne@998 | 65 mkdir -p $fs/usr/bin |
pankso@9746 | 66 cp -r $stuff/rox-filer $fs/usr/bin/ |
sygne@998 | 67 ICI=$(pwd) |
sygne@998 | 68 cd $fs/usr/bin/ |
sygne@998 | 69 ln -s rox-filer rox |
sygne@998 | 70 cd $ICI |
sygne@998 | 71 |
sygne@998 | 72 mkdir -p $fs/usr/lib/openbox |
pankso@9746 | 73 cp $stuff/rox-open-folder-menu.sh $fs/usr/lib/openbox/ |
sygne@998 | 74 |
sygne@998 | 75 strip -s $fs/usr/share/rox-filer/rox-filer |
sygne@998 | 76 } |
sygne@998 | 77 |
sygne@998 | 78 # Post install commands for Tazpkg. |
sygne@998 | 79 # Check /usr/share/icons/ROX |
sygne@998 | 80 post_install() |
sygne@998 | 81 { |
pascal@18730 | 82 if [ -e "$1/usr/share/icons/ROX" ]; then |
sygne@998 | 83 echo "" |
sygne@998 | 84 echo "/usr/share/icons/ROX exists" |
sygne@998 | 85 else |
sygne@998 | 86 echo "" |
sygne@998 | 87 echo "/usr/share/icons/ROX doesn't exists" |
sygne@998 | 88 echo -n "linking /usr/share/icons/ROX to /usr/share/icons/Tango" |
pascal@18730 | 89 ln -s /usr/share/icons/Tango "$1/usr/share/icons/ROX" |
sygne@998 | 90 status |
sygne@998 | 91 fi |
sygne@998 | 92 } |