talimat 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. # Tanım: Arşivlerle uğraşmak için Thunar filemanager eklentisi
  2. # URL: http://foo-projects.org/~benny/projects/thunar-archive-plugin
  3. # Paketçi: milisarge
  4. # Gerekler: thunar xarchiver
  5. # Grup: sistem
  6. isim=thunar-archive-plugin
  7. surum=0.3.1
  8. devir=1
  9. kaynak=(http://archive.xfce.org/src/thunar-plugins/$isim/${surum%.*}/$isim-$surum.tar.bz2)
  10. ##
  11. derle() {
  12. cd $isim-$surum
  13. ./configure --prefix=/usr \
  14. --libexecdir=/usr/lib/thunar \
  15. --disable-static \
  16. --disable-nls
  17. make
  18. make DESTDIR=$PKG install
  19. ##
  20. mkdir -p $PKG/usr/lib/thunar/thunar-archive-plugin/
  21. cat > $PKG/usr/lib/thunar/thunar-archive-plugin/xarchiver.tap << "EOF"
  22. #!/bin/sh
  23. #
  24. # xarchiver.tap - Wrapper script to create and extract archive files
  25. # in Thunar, via the thunar-archive-plugin, using xarchiver.
  26. #
  27. # determine the action and the folder, "$@" then contains only the files
  28. action=$1; shift;
  29. folder=$1; shift;
  30. # check the action
  31. case $action in
  32. create)
  33. exec xarchiver "--add-to=$@"
  34. ;;
  35. extract-here)
  36. exec xarchiver "--extract-to=$folder" "$@"
  37. ;;
  38. extract-to)
  39. exec xarchiver --extract "$@"
  40. ;;
  41. *)
  42. echo "Unsupported action '$action'" >&2
  43. exit 1
  44. esac
  45. EOF
  46. ##
  47. chmod 755 $PKG/usr/lib/thunar/thunar-archive-plugin/xarchiver.tap
  48. }