# Contributor: Carlo Landmeter # Maintainer: Natanael Copa pkgname=libssh pkgver=0.6.4 pkgrel=0 pkgdesc="Library for accessing ssh client services through C libraries" url="http://www.libssh.org/" arch="all" license="LGPL" depends= makedepends="openssl-dev cmake doxygen" subpackages="$pkgname-dev" source="https://red.libssh.org/attachments/download/107/libssh-$pkgver.tar.gz fix-includes.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 } 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="8a7daa171c69913f475dacffcb639fda libssh-0.6.4.tar.gz 8257f5a2a6be16b158a83d76b5eed4fd fix-includes.patch" sha256sums="7e3205e2e95bf35b23b83a6485a7d59abe7c7546d01b728f691cf0c374216b52 libssh-0.6.4.tar.gz d1798cd15d8682464a0b1b1853a9e17e63fed2fa732849570e595347d91b160c fix-includes.patch" sha512sums="02c1879d7afed9cc8404366c343ea770e97fcdcc7cc467f15b762b2c5724399de3efe69fdf6ee86a607c0f4d2337586f34150b9e0dcc8ccd8e86de79f574cba5 libssh-0.6.4.tar.gz 055a8f6b97c65384a5a3ab8fe00c69d94cc30092fe926093dbbc122ce301fbe9d76127aa07b5e6107d7fa9dd2aad6b165fa0958b56520253b5d64428ff42a318 fix-includes.patch"