makedepends=(glib vala raptor gobject-introspection xapian telepathy-glib json-glib gtk3 python-rdflib)

description="Client library used to access and manage the Zeitgeist event log from C and Vala."
url="http://www.gnome.org/"

packager="Great-OS Team"
maintainer="Great-OS Team"

name=libzeitgeist
version=1.0.4
release=2

source=(https://gitlab.freedesktop.org/zeitgeist/zeitgeist/-/archive/v$version/zeitgeist-v$version.tar.gz
        33ab4c.patch)

build() {

  cd zeitgeist-v$version

  patch -Np1 -i ../33ab4c.patch
  
  autoreconf -fiv

  ./configure --prefix=/usr \
              --sysconfdir=/etc \
              --localstatedir=/var \
              --libexecdir=/usr/lib \
              --enable-fts

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

  make
  make DESTDIR="$PKG" install
}
