# Maintainer: Jan de Groot <jgc@archlinux.org>
# Contributor: onestep_ua <onestep@ukr.net>

pkgname=polkit-gnome
pkgver=0.97
pkgrel=1
pkgdesc="PolicyKit integration for the GNOME desktop"
arch=('i686' 'x86_64')
url="http://www.freedesktop.org/wiki/Software/PolicyKit"
license=('LGPL')
depends=('polkit>=0.98' 'gtk2>=2.21.8')
makedepends=('intltool')
replaces=('policykit-gnome')
options=(!libtool !makeflags)
source=(http://hal.freedesktop.org/releases/${pkgname}-${pkgver}.tar.bz2)
md5sums=('17a75ee1aafa19ae4f79052c8cde75b6')

build() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  sed -i -e 's/OnlyShowIn=GNOME/NotShowIn=KDE/' src/polkit-gnome-authentication-agent-1.desktop.in.in
  ./configure --prefix=/usr --sysconfdir=/etc \
      --localstatedir=/var --libexecdir=/usr/lib/polkit-gnome \
      --disable-static --disable-introspection
  make
  make GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 DESTDIR="${pkgdir}" install
}