summaryrefslogtreecommitdiff
path: root/community/signon-plugin-oauth2/PKGBUILD
blob: 50f8142b7b7e2825234e629d03eeab8bbba2b1d0 (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
# $Id: PKGBUILD 90878 2013-05-15 06:48:00Z bgyorgy $
# Maintainer: Balló György <ballogyor+arch at gmail dot com>

pkgname=signon-plugin-oauth2
_pkgname=signon-oauth2
pkgver=0.17
pkgrel=1
pkgdesc="OAuth 2 plugin for signon"
arch=('i686' 'x86_64' 'mips64el')
url="http://code.google.com/p/accounts-sso/"
license=('LGPL')
depends=('signon-ui' 'qjson')
makedepends=('signon')
source=(http://accounts-sso.googlecode.com/files/$_pkgname-$pkgver.tar.bz2)
sha1sums=('400301bf4a0cc7ad005ed552f9700e00a74b7237')

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

  sed -i '/-Werror/d' common-project-config.pri

  # Do not install tests and example
  echo 'INSTALLS =' >>tests/tests.pro
  echo 'INSTALLS =' >>example/example.pro

  qmake-qt4 PREFIX=/usr LIBDIR=/usr/lib
  make
}

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

  make INSTALL_ROOT="$pkgdir" install
}