summaryrefslogtreecommitdiff
path: root/community/credentials-preferences/PKGBUILD
blob: 73b770b480d27ce384d77d745bb7b0a34a324d41 (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 87397 2013-03-30 21:57:57Z bgyorgy $
# Maintainer: Balló György <ballogyor+arch at gmail dot com>

pkgname=credentials-preferences
_pkgname=credentials-control-center
pkgver=0.1.5
pkgrel=1
pkgdesc="Control panel for configuring online account credentials and settings"
arch=('i686' 'x86_64' 'mips64el')
url="https://launchpad.net/gnome-control-center-signon"
license=('GPL' 'LGPL')
depends=('libaccounts-glib' 'libsignon-glib' 'gtk3')
makedepends=('gobject-introspection' 'vala' 'intltool' 'itstool')
options=('!libtool')
install=$pkgname.install
source=(https://launchpad.net/gnome-control-center-signon/13.04/$pkgver/+download/$_pkgname-$pkgver.tar.xz
        http://pkgbuild.com/~bgyorgy/sources/$_pkgname-translations-20121018.tar.gz)
md5sums=('deaa290c89dffee5198f3f0f6f2e1fe1'
         '702d6b39136e10ba6dfad0afd300b2af')

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

  # Install updated language files
  rename $_pkgname- '' ../po/$_pkgname-*.po
  mv -f -t po ../po/*
  printf "%s\n" po/*.po | sed -e 's/po\///g' -e 's/\.po//g' >po/LINGUAS

  # Fix helper script
  sed -i 's/test/test -e/' online-accounts-preferences.in

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

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

  make DESTDIR="$pkgdir" install
}