# Maintainer: Antonio Rojas <arojas@archlinux.org>
# Contributor: Andrea Scarpino <andrea@archlinux.org>
# Contributor: Balló György <ballogyor+arch at gmail dot com>

pkgname=signond
pkgver=8.61
pkgrel=3
pkgdesc='A D-Bus service which performs user authentication on behalf of its clients'
arch=(x86_64)
url='https://gitlab.com/accounts-sso/signond/'
license=(LGPL)
depends=(gcc-libs
         glibc
         qt6-base)
makedepends=(doxygen
             git
             graphviz
             qt6-tools
             ttf-font)
# source=(https://gitlab.com/accounts-sso/signond/-/archive/VERSION_$pkgver/signond-VERSION_$pkgver.tar.bz2)
_commit=c8ad98249af541514ff7a81634d3295e712f1a39
source=(git+https://gitlab.com/nicolasfella/signond#commit=$_commit)
sha256sums=('SKIP')

build() {
  cd $pkgname
  qmake6 \
    PREFIX=/usr \
    LIBDIR=/usr/lib
  make
}

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

  # Do not ship docs
  rm -rf "$pkgdir"/usr/share/doc
}
