updated on Sun Jan 15 08:01:04 UTC 2012
[aur-mirror.git] / plexydesk-git / PKGBUILD
blobff955334425e9f2a4e72c350eea1724939215ad9
1 # Maintainer: Max Gonzih <iam@gonzih.org>
2 # Contributor Diego José <diegoxter1006@gmail.com>
4 pkgname=plexydesk-git
5 pkgver=20110908
6 pkgrel=1
7 pkgdesc="PlexyDesk is a Desktop extension which lets you efficiently use your desktop background."
8 arch=('i686' 'x86_64')
9 url="http://www.plexyplanet.org/"
10 license=('GPL')
11 depends=('qt')
12 makedepends=('git' 'cmake')
13 provides=('plexydesk')
14 conflicts=('plexydesk' 'plexydesk-svn')
16 _gitroot=https://github.com/siraj/plexydesk.git
17 _gitname=plexydesk
19 build() {
20   cd "$srcdir"
21   msg "Connecting to GIT server...."
23   if [[ -d "$_gitname" ]]; then
24     cd "$_gitname" && git pull origin
25     msg "The local files are updated."
26   else
27     git clone "$_gitroot" "$_gitname"
28   fi
30   msg "GIT checkout done or server timeout"
31   msg "Starting build..."
33   rm -rf "$srcdir/$_gitname-build"
34   git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
35   cd "$srcdir/$_gitname-build"
37   cmake -DCMAKE_INSTALL_PREFIX=/usr/ .
38   make
41 package() {
42   cd "$srcdir/$_gitname-build"
43   make DESTDIR="$pkgdir/" install