updated on Sat Jan 21 04:00:54 UTC 2012
[aur-mirror.git] / notification-daemon-engine-coco-git / PKGBUILD
blob0550f7e6b0b57ab0ca0c77075c5add63746352b0
1 pkgname=notification-daemon-engine-coco-git
2 pkgver=20100307
3 pkgrel=1
4 pkgdesc="The Coco (NotifyOSD look-alike) theme engine for the notification daemon"
5 arch=('i686' 'x86_64')
6 url="http://github.com/tatofoo/notification-daemon-engine-coco"
7 license=('GPL3')
8 depends=('gtk2' 'notification-daemon')
9 source=()
10 _gitroot="git://github.com/tatofoo/notification-daemon-engine-coco.git"
11 _gitname="notification-daemon-engine-coco"
13 # trick re-determining the build revision and, or entertain the hidden
14 # makepkg option --forcever, huh
15 if [ -z "$FORCE_VER" ]; then
16         msg "Determining latest build revision..."
17         FORCE_VER=$(wget -q -O-                                                                   \
18                        http://github.com/tatofoo/notification-daemon-engine-coco/commits/master   \
19                        | grep '<abbr class="relatize" title='                                     \
20                        | head -n1                                                                 \
21                        | awk '{print $3;}'                                                        \
22                        | sed -e 's/.*"//' -e "s/-//g")
25 build() {
26         cd "$srcdir"
27         msg "Connecting to GIT server...."
29         if [ -d $_gitname ] ; then
30                 cd $_gitname && git pull origin
31                 msg "The local files are updated."
32         else
33                 git clone $_gitroot
34         fi
36         msg "GIT checkout done or server timeout"
37         msg "Starting make..."
39         cd ${_gitname}
41         ./autogen.sh
42         ./configure --prefix=/usr
43         make || return 1
44         make DESTDIR="$pkgdir" install