summaryrefslogtreecommitdiffstats
path: root/abs/extra/geoclue/PKGBUILD
blob: 78936e40ee8421e071104d9b5b42e70e19eab4a7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# $Id: PKGBUILD 156782 2012-04-23 09:05:31Z ibiru $
# Maintainer: Jan Alexander Steffens (heftig) <jan.steffens@gmail.com>
# Contributor: György Balló <ballogy@freestart.hu>

pkgname=geoclue
pkgver=0.12.0
pkgrel=5
pkgdesc="Modular geoinformation service built on the D-Bus messaging system."
arch=('i686' 'x86_64')
url="http://geoclue.freedesktop.org/"
license=('LGPL')
depends=('dbus-glib' 'libxml2')
optdepends=('networkmanager: geolocation'
            'gconf: geolocation'
            'libsoup-gnome: Skyhook location provider')
makedepends=('gconf'  'libsoup-gnome' 'gtk-doc')
options=('!libtool')
source=(https://launchpad.net/geoclue/trunk/${pkgver%.*}/+download/$pkgname-$pkgver.tar.gz
        geoclue-gcc46.patch)
md5sums=('33af8307f332e0065af056ecba65fec2'
         '0cf8ecc350be702f623ed9a9715818c5')

build() {
  cd $pkgname-$pkgver
  patch -Np1 -i ../geoclue-gcc46.patch

  sed -i 's/libnm_glib/libnm-glib/g' configure.ac
  sed -i '/libsoup-gnome/s/$/ gthread-2.0/' configure.ac
  autoreconf -f -i

  ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --libexecdir=/usr/lib/$pkgname \
              --disable-static
  make
}

package() {
  cd $pkgname-$pkgver
  make DESTDIR="$pkgdir" install
}