# Maintainer: Jan Alexander Steffens (heftig) <heftig@archlinux.org>

pkgname=gnome-info-collect
pkgver=1.0.5
pkgrel=2
pkgdesc="GNOME system and user data collection tool"
url="https://gitlab.gnome.org/vstanek/gnome-info-collect"
arch=(any)
license=(GPL3)
depends=(python-requests python-gobject gnome-online-accounts accountsservice)
makedepends=(git)
_commit=57f4b153c0dda53d76fd5976c62963855722af97  # tags/v1.0-5
source=("git+https://gitlab.gnome.org/vstanek/gnome-info-collect.git#commit=$_commit")
sha256sums=('SKIP')

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

package() {
  install -D $pkgname/client/client.py "$pkgdir/usr/bin/$pkgname"
}
