diff --git a/libssh/PKGBUILD b/libssh/PKGBUILD index 01d739fb7..ebc2eb0f7 100644 --- a/libssh/PKGBUILD +++ b/libssh/PKGBUILD @@ -1,25 +1,32 @@ pkgname=libssh -pkgver=0.7.3 +pkgver=0.7.6 pkgrel=1 pkgdesc="Library for accessing ssh client services through C libraries" -url="http://www.libssh.org/" +url="https://www.libssh.org/" license=('LGPL') arch=('x86_64') -depends=('openssl') -makedepends=('cmake' 'doxygen') -source=(https://red.libssh.org/attachments/download/195/${pkgname}-${pkgver}.tar.xz - https://red.libssh.org/attachments/download/194/${pkgname}-${pkgver}.tar.asc) -md5sums=('05465da8004f3258db946346213209de' - 'SKIP') +depends=('zlib' 'openssl') +makedepends=('cmake' 'cmocka' 'doxygen' 'python3') +source=(http://www.libssh.org/files/${pkgver%.*}/$pkgname-$pkgver.tar.xz{,.asc}) +sha256sums=('1d607d3859274f755942324afb0f887ee22edd157f9596a2e69e3a28ec6d1092' + 'SKIP') validpgpkeys=('8DFF53E18F2ABC8D8F3C92237EE0FC4DCC014E3D') # Andreas Schneider -build() { +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/cmocka_unit_test(torture_path_expand_tilde_unix),//' -i libssh-${pkgver}/tests/unittests/torture_misc.c + mkdir -p build +} + +build() { cd build cmake ../${pkgname}-${pkgver} \ -DCMAKE_INSTALL_PREFIX=/usr \ - -DCMAKE_BUILD_TYPE=Release \ - -DWITH_GSSAPI=Off + -DWITH_GSSAPI=OFF \ + -DUNIT_TESTING=ON make }