summaryrefslogtreecommitdiffstats
path: root/abs
diff options
context:
space:
mode:
authorBritney Fransen <brfransen@gmail.com>2014-11-24 17:07:27 (GMT)
committerBritney Fransen <brfransen@gmail.com>2014-11-24 17:07:27 (GMT)
commit280dbaf23257adbea88f1a9641279fe05ebfd76a (patch)
tree977b08466ea7db2d9649e4dda0bd71f21abc7778 /abs
parentd84e0e692a9769a2b0fa45a4eb8d1d8971ed2678 (diff)
downloadlinhes_pkgbuild-280dbaf23257adbea88f1a9641279fe05ebfd76a.zip
linhes_pkgbuild-280dbaf23257adbea88f1a9641279fe05ebfd76a.tar.gz
linhes_pkgbuild-280dbaf23257adbea88f1a9641279fe05ebfd76a.tar.bz2
libssh: update to 0.6.3
Diffstat (limited to 'abs')
-rw-r--r--abs/extra/libssh/PKGBUILD38
1 files 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 <andrea@archlinux.org>
+# $Id$
+# Maintainer: Tom Gundersen <teg@jklm.no>
+# Contributor: Andrea Scarpino <andrea@archlinux.org>
# Contributor: ice-man <icemanf@gmail.com>
# Contributor: sergeantspoon <sergeantspoon@archlinux.us>
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
}