summaryrefslogtreecommitdiff
path: root/nonprism/gnome-online-accounts/PKGBUILD
blob: 721b8a90302a44dedb72a0fe91db9531768705fd (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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
# $Id$
# Contributor (Arch): Ionut Biru <ibiru@archlinux.org>
# Contributor: Andreas Grapentin <andreas@grapentin.org>
# Contributor: Márcio Silva <coadde@hyperbola.info>
# Contributor: Isaac David <isacdaavid@at@isacdaavid@dot@info>
# Maintainers: Parabola hackers <dev@lists.parabola.nu>

# parabola changes and rationale:
#  - removed support for possibly unsafe protocols

pkgname=gnome-online-accounts
pkgver=3.34.1
pkgrel=1.nonprism1
pkgdesc="Single sign-on framework for GNOME, without support for unsafe and dangerous for privacy protocols"
url="https://wiki.gnome.org/Projects/GnomeOnlineAccounts"
arch=(x86_64 i686 armv7h)
license=(LGPL)
depends=(webkit2gtk json-glib libnotify rest libsecret telepathy-glib krb5 gcr)
makedepends=(gobject-introspection gtk-doc vala autoconf-archive gnome-common git)
optdepends=('gvfs-goa: Virtual file systems (e.g. OwnCloud)')

_commit=a57487846b75dccd7a272f8682d647766ce222cd  # tags/3.34.1^0
source=("git+https://git.gnome.org/browse/gnome-online-accounts#commit=$_commit"
        "git+https://git.gnome.org/browse/telepathy-account-widgets")
sha256sums=('SKIP'
            'SKIP')

pkgver() {
  cd $pkgname
  git describe --tags | sed 's/-/+/g'
}

prepare() {
  cd $pkgname

  git submodule init
  git config --local submodule.telepathy-account-widgets.url "$srcdir/telepathy-account-widgets"
  git submodule update

  NOCONFIGURE=1 ./autogen.sh
}

build() {
  cd $pkgname

  ./configure \
    --prefix=/usr \
    --libexecdir=/usr/lib \
    --disable-static \
    --enable-compile-warnings=minimum \
    --enable-inspector \
    --enable-media-server \
    --enable-kerberos \
    --enable-telepathy \
    --enable-owncloud \
    --enable-imap-smtp \
    --disable-lastfm \
    --disable-todoist \
    --disable-exchange \
    --disable-facebook \
    --disable-flickr \
    --disable-google \
    --disable-pocket \
    --disable-windows-live \
    --disable-twitter \
    --disable-yahoo \
    --disable-foursquare \
    --enable-gtk-doc

  sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool

  make
}

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