38 lines
1.1 KiB
Bash
38 lines
1.1 KiB
Bash
# Template file for 'libssh'
|
|
pkgname=libssh
|
|
version=0.9.6
|
|
revision=1
|
|
build_style=cmake
|
|
hostmakedepends="pkg-config python3"
|
|
makedepends="zlib-devel openssl-devel cmocka-devel"
|
|
checkdepends="openssh"
|
|
short_desc="Multiplatform C library implementing the SSH v2 protocol"
|
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
|
license="LGPL-2.1-or-later"
|
|
homepage="https://www.libssh.org/"
|
|
changelog="https://git.libssh.org/projects/libssh.git/plain/ChangeLog?h=stable-${version%.*}"
|
|
distfiles="https://git.libssh.org/projects/libssh.git/snapshot/${pkgname}-${version}.tar.gz"
|
|
checksum=63ddcb340e0898eb5c874418c1ff421cf90236fcb3fe5166675e79fa8a7511e4
|
|
make_check=ci-skip # some tests fail when running as root
|
|
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
*-musl) configure_args="-DHAVE_GLOB=0" ;;
|
|
esac
|
|
|
|
if [ "$XBPS_CHECK_PKGS" ]; then
|
|
configure_args+=" -DUNIT_TESTING=ON"
|
|
else
|
|
configure_args+=" -DUNIT_TESTING=OFF"
|
|
fi
|
|
|
|
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
|
|
}
|
|
}
|