#!/usr/bin/bash
# JOBoRun		: Jwm OpenBox Obarun RUNit
# Maintainer		: Joe Bo Run <joborun@disroot.org>
# PkgSource		: url="https://gittea.disroot.org/joborun-pkg/jobcore/$pkgname"
#-----------------------------------------| DESCRIPTION |---------------------------------------

pkgname=ding-libs
pkgver=0.6.2
pkgrel=01
pkgdesc="\"DING is not GNU\" helper libraries for SSSD and FreeIPA"
arch=('x86_64')
url="https://github.com/SSSD/ding-libs"
depends=('glibc')
makedepends=('doxygen')
checkdepends=('check')
# https://github.com/SSSD/ding-libs/releases/download/0.6.2/ding-libs-0.6.2.tar.gz.sha256sum
source=(https://github.com/SSSD/ding-libs/releases/download/$pkgver/$pkgname-$pkgver.tar.gz{,.asc})

build() {
  cd $pkgname-$pkgver
  ./configure --prefix=/usr --disable-static
  make all docs
}

check() {
  cd $pkgname-$pkgver
  make check
}

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

#---- license gpg-key sha256sums ----

license=('GPL3' 'LGPL3')

validpgpkeys=('930201AAB42DD1947210B7838D7326351A726211') # Alexey Tikhonov <atikhono@redhat.com>

sha256sums=(e5f07f34f5921bcb5ccccfe3751c28497879a6451cd7b395e99e24d9b5728e8d # ding-libs-0.6.2.tar.gz
	ec100c9256deb375da3f07e6e5215612da22241bd7297f8250019e5729e74d4c) # ding-libs-0.6.2.tar.gz.asc
