2017-10-27 20:46:27 +02:00
|
|
|
|
# Tanım: Arşivlerle uğraşmak için Thunar filemanager eklentisi
|
2016-03-02 16:12:51 +01:00
|
|
|
|
# URL: http://foo-projects.org/~benny/projects/thunar-archive-plugin
|
2017-10-27 20:46:27 +02:00
|
|
|
|
# Paketçi: milisarge
|
|
|
|
|
# Gerekler: thunar xarchiver
|
2016-03-02 16:12:51 +01:00
|
|
|
|
|
2017-10-28 14:10:23 +02:00
|
|
|
|
isim=thunar-archive-plugin
|
|
|
|
|
surum=0.3.1
|
|
|
|
|
devir=1
|
|
|
|
|
kaynak=(http://archive.xfce.org/src/thunar-plugins/$isim/${surum%.*}/$isim-$surum.tar.bz2)
|
2016-03-02 16:12:51 +01:00
|
|
|
|
|
|
|
|
|
##
|
2017-10-27 23:59:41 +02:00
|
|
|
|
derle() {
|
2017-10-28 14:10:23 +02:00
|
|
|
|
cd $isim-$surum
|
2016-03-02 16:12:51 +01:00
|
|
|
|
|
|
|
|
|
./configure --prefix=/usr \
|
|
|
|
|
--libexecdir=/usr/lib/thunar \
|
|
|
|
|
--disable-static \
|
|
|
|
|
--disable-nls
|
|
|
|
|
|
|
|
|
|
make
|
|
|
|
|
make DESTDIR=$PKG install
|
|
|
|
|
|
|
|
|
|
##
|
|
|
|
|
mkdir -p $PKG/usr/lib/thunar/thunar-archive-plugin/
|
|
|
|
|
cat > $PKG/usr/lib/thunar/thunar-archive-plugin/xarchiver.tap << "EOF"
|
|
|
|
|
#!/bin/sh
|
|
|
|
|
#
|
|
|
|
|
# xarchiver.tap - Wrapper script to create and extract archive files
|
|
|
|
|
# in Thunar, via the thunar-archive-plugin, using xarchiver.
|
|
|
|
|
#
|
|
|
|
|
# determine the action and the folder, "$@" then contains only the files
|
|
|
|
|
action=$1; shift;
|
|
|
|
|
folder=$1; shift;
|
|
|
|
|
|
|
|
|
|
# check the action
|
|
|
|
|
case $action in
|
|
|
|
|
create)
|
|
|
|
|
exec xarchiver "--add-to=$@"
|
|
|
|
|
;;
|
|
|
|
|
|
|
|
|
|
extract-here)
|
|
|
|
|
exec xarchiver "--extract-to=$folder" "$@"
|
|
|
|
|
;;
|
|
|
|
|
|
|
|
|
|
extract-to)
|
|
|
|
|
exec xarchiver --extract "$@"
|
|
|
|
|
;;
|
|
|
|
|
|
|
|
|
|
*)
|
|
|
|
|
echo "Unsupported action '$action'" >&2
|
|
|
|
|
exit 1
|
|
|
|
|
esac
|
|
|
|
|
EOF
|
|
|
|
|
|
|
|
|
|
##
|
|
|
|
|
chmod 755 $PKG/usr/lib/thunar/thunar-archive-plugin/xarchiver.tap
|
|
|
|
|
}
|
|
|
|
|
|