updated on Thu Jan 19 12:17:07 UTC 2012
[aur-mirror.git] / dolphin-box-plugin-git / PKGBUILD
blob7bdc0114c0a5b40396bf1a4c904ccc135acd7610
1 # Maintainer: Massimiliano Torromeo <massimiliano.torromeo@gmail.com>
2 pkgname=dolphin-box-plugin-git
3 pkgver=20110404
4 pkgrel=1
5 pkgdesc="Dropbox integration for the dolphin file manager"
6 arch=('i686' 'x86_64')
7 url="http://trichard-kde.blogspot.com/2010/12/introducing-dropbox-integration-for.html"
8 license=('GPL')
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"
15 build() {
16         cd "$srcdir"
17         msg "Connecting to GIT server...."
19         if [ -d $_gitname ] ; then
20                 cd $_gitname && git pull origin
21                 msg "The local files are updated."
22         else
23                 git clone --depth=1 $_gitroot $_gitname
24         fi
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 .
34         make
37 package() {
38   cd "$srcdir/$_gitname-build"
39   make DESTDIR="$pkgdir/" install