void-packages/srcpkgs/libssh/template
2018-08-14 06:21:46 -03:00

28 lines
825 B
Bash

# Template file for 'libssh'
pkgname=libssh
version=0.8.1
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=870fd7b4a867baa74aeceb8fa284f33fd36a5aa9d1d15c6d268ad836aa491e54
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
}
}