2018-06-09 00:06:58 +02:00
|
|
|
|
# Tanım: Arşivlerle uğraşmak için Thunar filemanager eklentisi
|
|
|
|
|
# URL: http://foo-projects.org/~benny/projects/thunar-archive-plugin
|
|
|
|
|
# Paketçi: milisarge
|
|
|
|
|
# Gerekler: thunar xarchiver
|
2018-07-26 11:50:21 +02:00
|
|
|
|
# Grup: sistem
|
2018-06-09 00:06:58 +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)
|
|
|
|
|
|
|
|
|
|
##
|
|
|
|
|
derle() {
|
|
|
|
|
cd $isim-$surum
|
|
|
|
|
|
|
|
|
|
./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
|
|
|
|
|
}
|
|
|
|
|
|