# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=libgda
pkgver=5.2.9
pkgrel=0
pkgdesc="GNOME Database Access library"
url="https://www.gnome-db.org/"
arch="all"
options="!check"  # "Disk I/O error" in multi-threaded. all others pass
license="GPL-2.0+ AND LGPL-2.0+"
depends="iso-codes"
makedepends="db-dev glib-dev gobject-introspection-dev graphviz-dev gtk+3.0-dev
	gtksourceview-3.0-dev intltool iso-codes-dev itstool libgcrypt-dev
	libgee-dev libsoup-dev libxml2-dev libxml2-utils libxslt-dev
	postgresql-dev sqlite-dev vala-dev"
subpackages="$pkgname-dev $pkgname-doc $pkgname-lang $pkgname-libs"
source="https://ftp.gnome.org/pub/GNOME/sources/libgda/5.2/libgda-$pkgver.tar.xz
	cs.patch
	"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var \
		--enable-ui \
		--enable-vala
	make
}

check() {
	make check
}

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

sha512sums="a28324533298d42aacfce5d9f3d699314ddb5d5fe7e492433dbbe4232fb310b798d312ac08dffd4f4ebef5ceea3c6c49ef3c679ab97b5e9d1f64e3fed50b2231  libgda-5.2.9.tar.xz
911383ba387ecfd2c53bee777aa540f8490c52fdd82e20d23b7f61e5d8591643be9d2c50d4d45183d96b2a44d2e800ceb788bf7e871ade3a9166584c86af9be5  cs.patch"