# Maintainer: Jan Alexander Steffens (heftig) <jan.steffens@gmail.com>
# Contributor: Ionut Biru <ibiru@archlinux.org>

pkgname=gnome-online-miners
pkgver=3.34.0
pkgrel=2
pkgdesc="Crawls through your online content"
arch=(x86_64)
url="https://wiki.gnome.org/Projects/GnomeOnlineMiners"
license=(GPL)
depends=(libgdata gnome-online-accounts grilo libzapojit tracker gfbgraph dleyna-server)
makedepends=(git autoconf-archive python)
_commit=f9aca437b511ca95e1ea6dab68c099aa9e9ae119  # tags/3.34.0^0
source=("git+https://gitlab.gnome.org/GNOME/gnome-online-miners.git#commit=$_commit")
sha256sums=('SKIP')

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

prepare() {
  cd $pkgname
  NOCONFIGURE=1 ./autogen.sh
}
  
build() {
  cd $pkgname
  ./configure --prefix=/usr --libexecdir=/usr/lib --disable-static
  sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
  make
}

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

# vim:set ts=2 sw=2 et:
