summaryrefslogtreecommitdiff
path: root/extra/libaccounts-qt/PKGBUILD
blob: 80d87533ff9b9056dc47ecc19e389415bdfb8a07 (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
# $Id: PKGBUILD 203011 2013-12-31 16:41:54Z andrea $
# Maintainer: Andrea Scarpino <andrea@archlinux.org>
# Contributor: Balló György <ballogyor+arch at gmail dot com>

pkgbase=libaccounts-qt
pkgname=('libaccounts-qt' 'libaccounts-qt-doc')
pkgver=1.10
pkgrel=1
arch=('i686' 'x86_64')
url="http://code.google.com/p/accounts-sso/"
license=('LGPL')
makedepends=('qt4' 'libaccounts-glib' 'doxygen')
source=("http://accounts-sso.googlecode.com/files/accounts-qt-$pkgver.tar.bz2")
sha1sums=('a71ee49a3dda9c44a385e8f0215b08240e48512a')

prepare() {
  cd accounts-qt-$pkgver
  sed -i 's|SUBDIRS  += Accounts tests|SUBDIRS += Accounts|' accounts-qt.pro

  sed -i 's|QHG_LOCATION           = qhelpgenerator|QHG_LOCATION = qhelpgenerator-qt4|' doc/doxy.conf
}

build() {
  cd accounts-qt-$pkgver
  qmake-qt4 PREFIX=/usr LIBDIR=/usr/lib
  make
}

package_libaccounts-qt() {
  pkgdesc="Qt-based client library for accessing the online accounts database"
  depends=('qt4' 'libaccounts-glib')

  cd accounts-qt-$pkgver
  make INSTALL_ROOT="$pkgdir" install_subtargets
}

package_libaccounts-qt-doc() {
  cd accounts-qt-$pkgver
  make INSTALL_ROOT="$pkgdir" install_documentation
}