# Template file for 'libgensio'
pkgname=libgensio
version=2.8.15
revision=1
build_style=gnu-configure
hostmakedepends="swig pkg-config automake libtool"
short_desc="Library to abstract stream I/O"
maintainer="Vincent Legoll <vincent.legoll@gmail.com>"
license="GPL-2.0-only AND LGPL-2.1-only"
homepage="https://github.com/cminyard/gensio"
changelog="https://github.com/cminyard/gensio/releases"
distfiles="https://github.com/cminyard/gensio/releases/download/v${version}/gensio-${version}.tar.gz"
checksum=1cfa7d6ef19b8d98808b1f4bce225454781299f885815c22ab59d85585f54ee3
make_check=no # requires python-gensio which is not built

pre_configure() {
	autoreconf -fi
}

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