# Contributor: Carlo Landmeter # Maintainer: Natanael Copa pkgname=libssh pkgver=0.5.1 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="http://www.libssh.org/files/${pkgver%.*}/${pkgname}-${pkgver}.tar.gz" _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="0cd8bc9336398e23a76f4e25c1412eb4 libssh-0.5.1.tar.gz"