# Contributor: Carlo Landmeter # Maintainer: Natanael Copa pkgname=libssh pkgver=0.7.6 pkgrel=0 pkgdesc="Library for accessing ssh client services through C libraries" url="http://www.libssh.org/" arch="all" license="LGPL" depends= makedepends="zlib-dev libressl-dev cmake doxygen" subpackages="$pkgname-dev" source="https://www.libssh.org/files/0.7/libssh-$pkgver.tar.xz fix-includes.patch libressl.patch" _builddir="$srcdir"/$pkgname-$pkgver prepare() { cd "$_builddir" for i in $source; do case $i in *.patch) msg "Applying $i" patch -p1 -i "$srcdir"/$i || return 1 ;; esac done } # secfixes: # 0.7.6-r0: # - CVE-2018-10933 build() { cd "$srcdir" mkdir build && cd build cmake "$srcdir"/${pkgname}-${pkgver} \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_BUILD_TYPE=Release make || return 1 } package() { cd "$srcdir"/build make DESTDIR="$pkgdir" install } md5sums="a1cc59079abc707d182f761ca5b6ac08 libssh-0.7.6.tar.xz 8257f5a2a6be16b158a83d76b5eed4fd fix-includes.patch 77703cb8398ec003f2379d4ed315aaaa libressl.patch" sha256sums="1d607d3859274f755942324afb0f887ee22edd157f9596a2e69e3a28ec6d1092 libssh-0.7.6.tar.xz d1798cd15d8682464a0b1b1853a9e17e63fed2fa732849570e595347d91b160c fix-includes.patch e48893f225be683f013e09e16edb24db89fece94831c56f5571222e72a6dcf26 libressl.patch" sha512sums="2a01402b5a9fab9ecc29200544ed45d3f2c40871ed1c8241ca793f8dc7fdb3ad2150f6a522c4321affa9b8778e280dc7ed10f76adfc4a73f0751ae735a42f56c libssh-0.7.6.tar.xz 055a8f6b97c65384a5a3ab8fe00c69d94cc30092fe926093dbbc122ce301fbe9d76127aa07b5e6107d7fa9dd2aad6b165fa0958b56520253b5d64428ff42a318 fix-includes.patch c544406b353303f0569cb8ae63c88e58af68fbe065ad8076a2bb85662d4f5828832db0c97b015163ebf54b417ca883274d95ad0faec0100c80655d97bd64e297 libressl.patch"