void-packages/srcpkgs/libssh/template
2018-08-11 13:19:25 -03:00

28 lines
825 B
Bash

# Template file for 'libssh'
pkgname=libssh
version=0.8.0
revision=1
build_style=cmake
hostmakedepends="pkg-config python3"
makedepends="zlib-devel libressl-devel cmocka-devel"
short_desc="Multiplatform C library implementing the SSH v2 protocol"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
license="LGPL-2.1-or-later"
homepage="https://www.libssh.org/"
distfiles="https://git.libssh.org/projects/libssh.git/snapshot/${pkgname}-${version}.tar.bz2"
checksum=64bf40c65d66b7413b40062cf69b1a8617ee9f759010e28e5741fe180638dc30
case "$XBPS_TARGET_MACHINE" in
*-musl) configure_args="-DHAVE_GLOB=0" ;;
esac
libssh-devel_package() {
depends="${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove "usr/lib/*.so"
vmove usr/lib/pkgconfig
vmove usr/lib/cmake
}
}