updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / cow-notify-git / PKGBUILD
blob08f8b125b94d19d235c9f787429ba5e1797c2990
1 # Maintainer: Bryan Bennett <bbenne10@gmail.com>
2 pkgname=cow-notify-git
3 pkgver=20110925
4 pkgrel=1
5 pkgdesc="Lightweight, customizable notification daemon"
6 arch=('x86' 'x86_64')
7 url="https://github.com/Cloudef/cow-notify"
8 license=('MIT')
9 makedepends=('git')
10 options=()
11 install=cn.install
13 _giturl="https://github.com/Cloudef/cow-notify.git"
14 _gitname="cow-notify"
15 build() {
16   cd "$srcdir"
17   msg "Connecting to GIT server...."
18   if [[ -d "$_gitname" ]]; then
19     cd "$_gitname" && git pull origin
20     msg "The local files are updated."
21   else
22     git clone $_giturl
23   fi
25   msg "GIT checkout done or server timeout"
26   msg "Starting build..."
28   rm -rf "$srcdir/$_gitname-build"
29   git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
30   cd "$srcdir/$_gitname-build"
32   make
35 package() {
36   cd "$srcdir/$_gitname-build"
37   install -D -m755 "cow-notify" "$pkgdir/usr/bin/cow-notify"
40 # vim:set ts=2 sw=2 et: