#Maintainer: Dimitris Tzemos <djemos@slackel.gr>

pkgname=corbeille-spacefm-fr
pkgver=1.0.4
pkgrel=1dj
arch=noarch
#source=("")
url="http://www.jpfleury.net/en/software/corbeille-spacefm.php"

slackdesc=\
(
#|-----handy-ruler------------------------------------------------------|
"Corbeille-SpaceFM ("Corbeille" is the French for 'Trash can')"
"is a plugin adding trash support in the file manager SpaceFM."
"Special attention was given to have minimum requirements. It's"
"written in Bash, and only a few external tools from the package"
"coreutils are used (ls,mv, rm...), so it should work out-of-the-box"
"for everyone."
""
"HomePage: http://www.jpfleury.net/en/software/corbeille-spacefm.php"
)

build() {
	git_dir=${pkgname}
	git_url=git://jpfleury.indefero.net/jpfleury/corbeille-spacefm.git 

	git_cmd=" clone"

	git $git_cmd $git_url $git_dir 2>svn_err.log
 
	# create the source archive
	tar czf $pkgname-$pkgver.tar.gz $git_dir
	cp $pkgname-$pkgver.tar.gz ../
	
	cd $SRC/$pkgname
	./script.sh archive fr || return 1
	mkdir -p $PKG/usr/share/spacefm/plugins/Corbeille-fr-source ||return 1
	tar xvf $SRC/$pkgname/Corbeille-fr-source.spacefm-plugin.tar.gz -C $PKG/usr/share/spacefm/plugins/Corbeille-fr-source || return 1
}
