# Contributor: Timo Teräs <timo.teras@iki.fi>
# Maintainer: Timo Teräs <timo.teras@iki.fi>
setvar pkgname = 'liborcus'
setvar pkgver = '0.12.1'
setvar pkgrel = '0'
setvar pkgdesc = ""library for processing spreadsheet documents""
setvar url = ""https://gitlab.com/orcus/orcus""
setvar arch = ""all""
setvar license = ""MPL2""
setvar depends = """"
setvar depends_dev = """"
setvar makedepends = ""$depends_dev boost-dev mdds-dev libixion-dev zlib-dev""
setvar install = """"
setvar subpackages = ""$pkgname-dev""
setvar source = ""http://kohei.us/files/orcus/src/liborcus-$pkgver.tar.xz""
setvar builddir = ""$srcdir/liborcus-$pkgver""

proc build {
	cd $builddir
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var \
		--disable-python \
		|| return 1
	make || return 1
}

proc package {
	cd $builddir
	make DESTDIR="$pkgdir" install || return 1
}

setvar md5sums = ""14d39b4ba7e44123d63b7a1d1358026a  liborcus-0.12.1.tar.xz""
setvar sha256sums = ""d1b936c66944d23e1b2582d0e7129e44670052510d03f19fef644e9814ae2b9c  liborcus-0.12.1.tar.xz""
setvar sha512sums = ""294b24ad7fccae77070edd9d8e6e1a370f609ec8af9a2c58567431e641fc0f3f27c4cd4b6ac1825a8179a22a1d1a81d84827859eb631d2625194f9e59ca1a8c3  liborcus-0.12.1.tar.xz""