# Template file for 'libssh2'
pkgname=libssh2
version=1.11.1
revision=2
build_style=cmake
configure_args="-DENABLE_ZLIB_COMPRESSION=ON -DRUN_DOCKER_TESTS=OFF"
makedepends="zlib-devel openssl-devel"
short_desc="Library implementing the SSH2 protocol"
maintainer="Orphaned <orphan@voidlinux.org>"
license="BSD-3-Clause"
homepage="http://www.libssh2.org/"
distfiles="http://www.libssh2.org/download/${pkgname}-${version}.tar.gz"
checksum=d9ec76cbe34db98eec3539fe2c899d26b0c837cb3eb466a56b0f109cabf658f7

post_install() {
	vlicense COPYING LICENSE
}

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