# Depends on: avahi libsoup json-glib modemmanager libnotify geoip python2 gobject-introspection intltool

description="Modular geoinformation service built on the D-Bus messaging system."
url="http://freedesktop.org/software/geoclue/docs/"
maintainer="Zeeshan Ali <zeeshanak at gnome dot org>" 
packagers="tnut <tnut@nutyx.org>"
contributors="Fanch"

name=geoclue2
version=2.4.7
release=2

source=(http://freedesktop.org/software/geoclue/releases/${version:0:3}/geoclue-$version.tar.xz)

build() {
  cd geoclue-$version
  ./configure --prefix=/usr                \
              --sysconfdir=/etc            \
              --localstatedir=/var         \
              --libexecdir=/usr/lib/$name  \
              --disable-static

  sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
  make
  make DESTDIR=$PKG install

# Obsolet lib
rm $PKG/usr/lib/libgeoclue-2.la
}
