summaryrefslogtreecommitdiff
path: root/community/libaccounts-glib/PKGBUILD
blob: 457491631ed2f0099c78d932903b0100e8d5edcd (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
40
41
# $Id: PKGBUILD 81730 2012-12-27 21:37:34Z bgyorgy $
# Maintainer: Balló György <ballogyor+arch at gmail dot com>

pkgname=libaccounts-glib
pkgver=1.4
pkgrel=1
pkgdesc="Glib-based client library for accessing the online accounts database"
arch=('i686' 'x86_64')
url="http://code.google.com/p/accounts-sso/"
license=('LGPL')
depends=('dbus-glib' 'libxml2' 'sqlite3')
makedepends=('python2-gobject')
options=('!libtool')
source=(http://accounts-sso.googlecode.com/files/$pkgname-$pkgver.tar.gz
        fix-docdir.patch
        make-tests-optional.patch)
sha1sums=('d5c9683a6d48b977fc85523575f00b9e9cd3daa0'
          '94291a58dbbd36f524538adbf6d0c5a55024a34c'
          '35732dc134c32af6ad1684d6388bad8ffe3f4dcc')

build() {
  cd "$srcdir/$pkgname-$pkgver"

  ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \
              --disable-static \
              PYTHON=python2
  make
}

package() {
  cd "$srcdir/$pkgname-$pkgver"

  make DESTDIR="$pkgdir" install

  # Install GI overrides for python 3 as well
  install -dm755 "$pkgdir/usr/lib/python3.3/site-packages/gi/overrides"
  ln -s ../../../../python2.7/site-packages/gi/overrides/Accounts.py "$pkgdir/usr/lib/python3.3/site-packages/gi/overrides/Accounts.py"

  # We don't have Backup Framework on Arch Linux
  rm -r "$pkgdir/usr/share/backup-framework"
}