updated on Sat Jan 14 00:11:12 UTC 2012
[aur-mirror.git] / notification-daemon-engine-nodoka-git / PKGBUILD
blob43cec9596078ec662276fc1812cfed6b26f95334
1 # Contributor: Spyros "Foucault" Stathopoulos <foucault.online@gmail.com>
2 pkgname=notification-daemon-engine-nodoka-git
3 pkgver=20091002
4 pkgrel=2
5 pkgdesc="Nodoka theme for gnome-notification-daemon (git version)."
6 arch=('i686' 'x86_64')
7 url="https://fedorahosted.org/nodoka/wiki"
8 license=('GPL3')
9 depends=('notification-daemon>=0.4')
10 makedepends=('git')
11 provides=('notification-daemon-engine-nodoka' 'notification-daemon-engine-nodoka-git')
12 conflicts=('notification-daemon-engine-nodoka')
13 replaces=('notification-daemon-engine-nodoka')
14 source=()
15 md5sums=()
17 _gitroot="git://git.fedorahosted.org/nodoka"
18 _gitname="notification-daemon-engine-nodoka"
20 build() {
21   cd "$srcdir"
22   msg "Connecting to GIT server..."
24   if [ -d $_gitname ] ; then
25     cd $_gitname && git pull origin
26     msg "The local files are updated."
27   else
28         msg "git clone $_gitroot $_gitname"
29     git clone $_gitroot $_gitname
30   fi
32   msg "GIT checkout done or server timeout"
33   msg "Starting make..."
35   rm -rf "$srcdir/$_gitname-build"
36   git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
37   cd "$srcdir/$_gitname-build/$_gitname"
39   ./autogen.sh
40   ./configure --prefix=/usr
41   make || return 1
42   make DESTDIR="$pkgdir/" install
43