updated on Mon Jan 16 20:00:43 UTC 2012
[aur-mirror.git] / xfce4-volumed-git / PKGBUILD
blob82bfcd0b3998772947abd4a89ebee4b4a6ec8485
1 # Contributor: Silvio Knizek <killermoehre@gmx.net>
2 pkgname=xfce4-volumed-git
3 pkgver=20110321
4 pkgrel=1
5 pkgdesc="Basic daemon enabling the XF86 Volume keys and supporting synchronous volume notifications"
6 arch=(i686 x86_64)
7 license=('GPL2')
8 url="http://git.xfce.org/apps/xfce4-volumed/"
9 groups=('xfce4-goodies-git')
10 depends=('xfconf' 'gstreamer0.10-base-plugins' 'libnotify' 'keybinder')
11 makedepends=('git' 'xfce4-dev-tools')
12 provides=('xfce4-volumed')
13 conflicts=('xfce4-volumed')
14 options=('!libtool')
16 _gitname=xfce4-volumed
17 _gitroot=http://git.xfce.org/apps/xfce4-volumed
19 build() {
20     cd $startdir/src/
21         msg2 "Getting sources..."
22         
23         if [ -d $_gitname ] ; then
24                 cd $_gitname && git pull origin || return 1
25                 msg2 "The local files are updated." &&  cd ../
26         else
27                 git clone $_gitroot $_gitname|| return 1
28         fi
29   
30         [ -d $_gitname-build ] && rm -r $_gitname-build 
31         cp $_gitname $_gitname-build -r || return 1
32         cd $_gitname-build || return 1
33         
34     msg2 "Starting build..."
36   ./autogen.sh 
37   ./configure --prefix=/usr --sysconfdir=/etc --libexecdir=/usr/lib \
38      --localstatedir=/var --with-libnotify
39   make || return 1
40   make DESTDIR=${pkgdir} install || return 1
42