updated on Sat Jan 14 00:11:12 UTC 2012
[aur-mirror.git] / xfce4-notifyd-git / PKGBUILD
blob10272337e1db4dbafdfcee2d87a1953c69f05558
1 # Contributor: Zbyszek Tokarczyk <ztokarczyk (at) Gmail.com>
3 pkgname=xfce4-notifyd-git
4 pkgver=20101211
5 pkgrel=1
6 pkgdesc="notification daemon for the xfce desktop"
7 arch=('i686' 'x86_64')
8 license=('GPL')
9 url="http://spuriousinterrupt.org/projects/xfce4-notifyd"
10 groups=('xfce4-goodies')
12 depends=('libxfce4ui-devel' 'hicolor-icon-theme' 'libcanberra')
13 makedepends=('pkgconfig' 'intltool' 'git')
14 conflicts=('notification-daemon' 'notification-daemon-xfce' 'xfce4-notifyd' 'xfce4-notifyd-git')
15 replaces=('notification-daemon' 'notification-daemon-xfce' 'xfce4-notifyd' 'xfce4-notifyd-git')
17 #depends=('libxfcegui4' 'libxfce4util' 'xfconf' 'libsexy' 'libglade' 'dbus' 'dbus-glib' 'hicolor-icon-theme')
18 #makedepends=('xfce4-dev-tools-git' 'pkgconfig' 'git')
20 provides=('notification-daemon')
21 options=('!libtool')
22 install=${pkgname}.install
24 _gitname="xfce4-notifyd"
25 _gitroot="git://git.xfce.org/apps/xfce4-notifyd"
27 build() {
28         cd $startdir/src/
30         echo "Getting sources..."
31         if [[ -d $_gitname ]] ; then
32                 cd $_gitname && git pull origin || return 1
33                 msg "The local files are updated." &&   cd ../
34         else
35                 git clone $_gitroot || return 1
36         fi
38         [ -d $_gitname-build ] && rm -r $_gitname-build
39         cp $_gitname $_gitname-build -r || return 1
40         cd $_gitname-build || return 1
42         echo "Starting build..."
43         ./autogen.sh --prefix=/usr --sysconfdir=/etc --libexecdir=/usr/lib/xfce4 \
44                 --localstatedir=/var --disable-static
45         make || return 1
46         make DESTDIR=${pkgdir} install || return 1