summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 37a235f95d02f577694ec362ee8eb1129bcdf3e4 (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
#Maintainer: Jan De Groot <jgc@archlinux.org>

pkgname=libgnome-keyring
pkgver=3.12.0+r14+g23438cc
pkgrel=1
epoch=1
pkgdesc="GNOME keyring client library (deprecated)"
url="https://gitlab.gnome.org/Archive/libgnome-keyring"
arch=(x86_64)
license=(LGPL-2.1-or-later)
depends=(
  dbus
  glib2
  libgcrypt
)
makedepends=(
  git
  gnome-common
  gobject-introspection
  intltool
  vala
)
optdepends=('org.freedesktop.secrets: secret storage backend')
_commit=23438cc767a744f29aeaf8cb8746f8d5ce9cdb32  # master
source=("git+https://gitlab.gnome.org/Archive/libgnome-keyring.git#commit=$_commit")
b2sums=('SKIP')

pkgver() {
  cd $pkgname
  git describe --tags | sed 's/[^-]*-g/r&/;s/-/+/g'
}

prepare() {
  cd $pkgname
  NOCONFIGURE=1 ./autogen.sh
}

build() {
  local configure_options=(
    --prefix=/usr
    --sysconfdir=/etc
    --localstatedir=/var
    --libexecdir=/usr/lib
    --disable-static
    --enable-gtk-doc
  )

  cd $pkgname
  ./configure "${configure_options[@]}"
  sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
  make
}

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

# vim:set sw=2 sts=-1 et: