1 # Maintainer: Silvio Knizek <killermoehre@gmx.net>
2 # Contributor: Xavier Devlamynck <magicrhesus@ouranos.be>
4 pkgname=xfce4-power-manager-git
7 pkgdesc="Power Manager Xfce desktop environment"
10 url="http://git.xfce.org/apps/xfce4-power-manager"
12 depends=('gtk2' 'glib2' 'dbus' 'dbus-glib' 'xfconf-git' 'libxfce4util-git' 'libxfce4ui-git' 'libnotify' 'libxrandr' 'libxcb' 'xfce4-panel-git' 'polkit' 'consolekit')
14 makedepends=('pkgconfig' 'git')
15 provides=('xfce4-power-manager')
16 conflicts=('xfce4-power-manager')
20 _gitname=xfce4-power-manager
21 _gitroot=git://git.xfce.org/apps/xfce4-power-manager
25 msg2 "Getting sources..."
27 if [[ -d $_gitname ]] ; then
28 cd $_gitname && git pull origin || return 1
29 msg2 "The local files are updated." && cd ../
31 git clone $_gitroot $_gitname || return 1
34 [ -d $_gitname-build ] && rm -r $_gitname-build
35 cp $_gitname $_gitname-build -r || return 1
36 cd $_gitname-build || return 1
38 msg2 "Starting build..."
40 ./autogen.sh --prefix=/usr --sysconfdir=/etc --libexecdir=/usr/lib --localstatedir=/var --disable-hal --enable-dpms --disable-network-manager --enable-panel-plugins
43 make DESTDIR=${pkgdir} install || return 1
46 # vim:set ts=2 sw=2 et: