summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 2b445a0b704661fa7c8343181bbab191d8433c46 (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
pkgname=gnome-keyring-git
_pkgname=gnome-keyring
pkgver=3.35.1+8+gfd130b33
pkgrel=1
epoch=1
pkgdesc="Stores passwords and encryption keys"
url="https://wiki.gnome.org/Projects/GnomeKeyring"
arch=(x86_64)
license=(GPL LGPL)
depends=('gcr' 'libcap-ng' 'pam' 'openssh')
makedepends=('git' 'docbook-xsl' 'python')
provides=('gnome-keyring' 'org.freedesktop.secrets')
conflicts=('gnome-keyring')
groups=('gnome')
install=gnome-keyring.install
source=("git+https://gitlab.gnome.org/GNOME/gnome-keyring.git"
        add-cinnamon.diff)
sha256sums=('SKIP'
            'd05210f5b0a7d4b22c0dff2854854af2eb5708aa2b296095e070dca68e9f815a')

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

prepare() {
  cd $_pkgname
  git apply -3 ../add-cinnamon.diff
  NOCONFIGURE=1 ./autogen.sh
}

build() {
  cd $_pkgname
  ./configure --prefix=/usr \
    --sysconfdir=/etc \
    --localstatedir=/var \
    --libexecdir=/usr/lib \
    --with-pam-dir=/usr/lib/security \
    --disable-static \
    --disable-schemas-compile
  sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
  make
}

check() {
  cd $_pkgname
  # Secure memory tests fail
  dbus-run-session make -k check || :
}

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