1 # Maintainer: Massimiliano Torromeo <massimiliano.torromeo@gmail.com>
2 pkgname=dolphin-box-plugin-git
5 pkgdesc="Dropbox integration for the dolphin file manager"
7 url="http://trichard-kde.blogspot.com/2010/12/introducing-dropbox-integration-for.html"
9 depends=('kdebase-dolphin' 'dropbox')
10 makedepends=('git' 'cmake' 'automoc4')
12 _gitroot="git://anongit.kde.org/scratch/trichard/dolphin-box-plugin"
13 _gitname="dolphin-box-plugin"
17 msg "Connecting to GIT server...."
19 if [ -d $_gitname ] ; then
20 cd $_gitname && git pull origin
21 msg "The local files are updated."
23 git clone --depth=1 $_gitroot $_gitname
26 msg "GIT checkout done or server timeout"
27 msg "Starting make..."
29 rm -rf "$srcdir/$_gitname-build"
30 git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
31 cd "$srcdir/$_gitname-build"
33 cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release .
38 cd "$srcdir/$_gitname-build"
39 make DESTDIR="$pkgdir/" install