# Template file for 'libixion'
pkgname=libixion
version=0.20.0
revision=5
build_style=gnu-configure
hostmakedepends="pkg-config python3 automake libtool"
makedepends="boost-devel-minimal libboost_program_options libboost_filesystem
 mdds python3-devel"
short_desc="General purpose formula parser and interpreter"
maintainer="Orphaned <orphan@voidlinux.org>"
license="MPL-2.0"
homepage="https://gitlab.com/ixion/ixion/"
changelog="https://gitlab.com/ixion/ixion/-/raw/master/CHANGELOG"
distfiles="https://gitlab.com/ixion/ixion/-/archive/${version}/ixion-${version}.tar.gz"
# distfiles="${DEBIAN_SITE}/main/libi/libixion/libixion_${version}.orig.tar.gz"
checksum=4a6c2c480ad40b706ecf459dfca03f39351e12b48911c7c4803b75c823a1bcb1
replaces="libixion11>=0"

export BOOST_ROOT="${XBPS_CROSS_BASE}/usr"

pre_configure() {
	autoreconf -fi
}

libixion-devel_package() {
	short_desc+=" - development files"
	depends="${sourcepkg}>=${version}_${revision}"
	pkg_install() {
		vmove usr/include
		vmove "usr/lib/*.so"
		vmove usr/lib/pkgconfig
	}
}
