# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=libiodata
pkgver=0.19.11_git2
pkgrel=2
pkgdesc="A library for reading and writing simple structured data"
url="https://github.com/sailfishos/libiodata"
arch="all"
license="LGPL-2.1-only"
makedepends="
	argp-standalone
	bison
	flex
	qt5-qtbase-dev
	"
subpackages="$pkgname-dev"
source="https://github.com/sailfishos/libiodata/archive/${pkgver/_/+}/libiodata-${pkgver/_/+}.tar.gz"
builddir="$srcdir/$pkgname-${pkgver/_/-}"
options="!check"

build() {
	qmake-qt5
	IODATA_VERSION="$pkgver" make -j1 # Multi-threaded builds are broken
}

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

sha512sums="
3ed1f4e117bcc591cbfd4418467bdd33608d49f232b438134bc2b78ebd97ef3f5d7d97099310099cde38cf20ce1802af194858a2a4b42d3491f66236e427ab6f  libiodata-0.19.11+git2.tar.gz
"
