From 280dbaf23257adbea88f1a9641279fe05ebfd76a Mon Sep 17 00:00:00 2001 From: Britney Fransen Date: Mon, 24 Nov 2014 17:07:27 +0000 Subject: libssh: update to 0.6.3 --- abs/extra/libssh/PKGBUILD | 38 +++++++++++++++++++++++++++----------- 1 file changed, 27 insertions(+), 11 deletions(-) diff --git a/abs/extra/libssh/PKGBUILD b/abs/extra/libssh/PKGBUILD index a2dc1bf..c93c52f 100644 --- a/abs/extra/libssh/PKGBUILD +++ b/abs/extra/libssh/PKGBUILD @@ -1,31 +1,47 @@ -# $Id: PKGBUILD 138141 2011-09-17 12:41:18Z andrea $ -# Maintainer: Andrea Scarpino +# $Id$ +# Maintainer: Tom Gundersen +# Contributor: Andrea Scarpino # Contributor: ice-man # Contributor: sergeantspoon pkgname=libssh -pkgver=0.5.2 +pkgver=0.6.3 pkgrel=1 pkgdesc="Library for accessing ssh client services through C libraries" url="http://www.libssh.org/" license=('LGPL') arch=('i686' 'x86_64') -depends=('openssl') -makedepends=('cmake' 'doxygen') -source=("https://red.libssh.org/attachments/download/27/${pkgname}-${pkgver}.tar.gz") -md5sums=('38b67c48af7a9204660a3e08f97ceba6') +depends=('zlib' 'openssl') +makedepends=('cmake' 'cmocka' 'doxygen') +checkdepends=('openssh') +source=(https://red.libssh.org/attachments/download/87/${pkgname}-${pkgver}.tar.xz) +md5sums=('66cf16e77f60913b4d54f18c92cdbf71') + + +prepare() { + # disable the test. It is confused by our clean container setup. + # 'extra-x86-build' uses user 'nobody' that has a record in /etc/passwd file + # but $HOME envvar is set to '/build'. The test expects that $HOME corresponds to passwd file. + sed 's/unit_test(torture_path_expand_tilde_unix),//' -i libssh-${pkgver}/tests/unittests/torture_misc.c +} build() { - cd "${srcdir}" - mkdir build + mkdir build || true cd build cmake ../${pkgname}-${pkgver} \ -DCMAKE_INSTALL_PREFIX=/usr \ - -DCMAKE_BUILD_TYPE=Release + -DCMAKE_BUILD_TYPE=Release \ + -DWITH_GSSAPI=OFF \ + -DWITH_TESTING=ON make } +check() { + cd build + make test +} + package(){ - cd "${srcdir}"/build + cd build make DESTDIR="${pkgdir}" install } -- cgit v0.12