# vim: syn=sh:
#Packager: JRD <jrd@enialis.net>

pkgname=thunar-vcs-plugin
pkgver=0.1.2
pkgrel=2cp
#arch is usually one of x86_64/i486/i686/noarch
arch=i486
source=(http://www.xfce.org/archive/src/thunar-plugins/$pkgname/$(echo $pkgver|sed 's/\([^.]\+\.[^.]\+\)\..*/\1/')/$pkgname-$pkgver.tar.bz2)
sourcetemplate=http://enialis.net/~jrd/salix/$pkgname/$pkgver-$arch-$pkgrel/
docs=("readme" "install" "copying" "changelog" "authors" "news" "todo")
url=http://goodies.xfce.org/projects/thunar-plugins/$pkgname

slackdesc=\
(
#|-----handy-ruler------------------------------------------------------|
"$pkgname (Subversion and GIT in thunar)"
"This gives a SVN integration and GIT integration to Thunar."
"This project was formerly known as Thunar SVN Plugin."
"The current features are:"
"* Most of the svn action: add, blame, checkout, cleanup, commit, copy,"
"  delete, export, import, lock, log, move, properties, relocate,"
"  resolved, revert, status, switch, unlock, update."
"* Subversion info in file properties dialog."
"* Basic git actions: add, blame, branch, clean, clone, log, move,"
"  reset, stash, status."
)


build() {
  cd $startdir/src/$pkgname-$pkgver || return 1
  ./configure --prefix=/usr --libdir=/usr/lib${LIBDIRSUFFIX} --localstatedir=/var --sysconfdir=/etc --build=$arch-slackware-linux || return 1
  make || return 1
  make install DESTDIR=$startdir/pkg || return 1
}