# Contributor: Carlo Landmeter # Maintainer: Natanael Copa pkgname=libssh pkgver=0.8.7 pkgrel=0 pkgdesc="Library for accessing ssh client services through C libraries" url="https://www.libssh.org" arch="all" license="LGPL-2.1-or-later BSD-2-Clause" depends_dev="openssl-dev zlib-dev" makedepends="$depends_dev cmake doxygen" checkdepends="cmocka-dev" subpackages="$pkgname-dev" source="https://www.libssh.org/files/${pkgver%.*}/libssh-$pkgver.tar.xz fix-unittests-torture_config.patch " builddir="$srcdir"/$pkgname-$pkgver # secfixes: # 0.7.6-r0: # - CVE-2018-10933 build() { cd "$builddir" mkdir build && cd build cmake .. \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_BUILD_TYPE=Release \ -DWITH_GSSAPI=OFF \ -DUNIT_TESTING=ON make } check() { cd "$builddir/build" ctest --output-on-failure } package() { cd "$builddir/build" make DESTDIR="$pkgdir" install } sha512sums="13c3dccad81d521edf29c8a5e2c5f7fdd90507a0eda652b2b040a0a17bab88860873e089a46e181907ea3f449ca1847b1c84453b1960f456e391eefe5be983c5 libssh-0.8.7.tar.xz e1f735492d5e847de218790a92c1ce4591e1ed7b8c31805829acbcd90729842d65d8e20676c02e7567be7a64f9565b8d3fc326339e099054dc880763c9e07f97 fix-unittests-torture_config.patch"