updated on Mon Jan 16 00:01:41 UTC 2012
[aur-mirror.git] / git-dude-git / PKGBUILD
blob62fe52e16febc467c4f7061a3f52712a63210775
1 # Maintainer: Stefan Seering <stefanarch@gmx.de>
2 pkgname=git-dude-git
3 pkgver=20111103
4 pkgrel=1
5 pkgdesc="A simple git desktop notifier. It monitors git repositories in current directory for new commits/branches/tags and shows desktop notification if anything new arrived."
6 arch=('any')
7 url='https://github.com/sickill/git-dude'
8 license=('unknown')
9 depends=('git' 'libnotify')
10 makedepends=('git')
12 _gitroot='git://github.com/sickill/git-dude.git'
13 _gitname='git-dude'
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 "$_gitroot" "$_gitname"
24   fi
26   msg "GIT checkout done or server timeout"
27   msg "Starting build..."
29   rm -rf "$srcdir/$_gitname-build"
30   git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
31   cd "$srcdir/$_gitname-build"
34 package() {
35   local destDir="${pkgdir}/usr/bin"
37   cd "$srcdir/$_gitname-build"
38   mkdir -p "${destDir}"
39   install -m 755 git-dude "${destDir}"
42 # vim:set ts=2 sw=2 et: