Date: Friday, June 28, 2019 @ 10:11:38
  Author: eworm
Revision: 357010

archrelease: copy trunk to testing-x86_64

Added:
  libssh/repos/testing-x86_64/
  libssh/repos/testing-x86_64/PKGBUILD
    (from rev 357009, libssh/trunk/PKGBUILD)

----------+
 PKGBUILD |   59 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 59 insertions(+)

Copied: libssh/repos/testing-x86_64/PKGBUILD (from rev 357009, 
libssh/trunk/PKGBUILD)
===================================================================
--- testing-x86_64/PKGBUILD                             (rev 0)
+++ testing-x86_64/PKGBUILD     2019-06-28 10:11:38 UTC (rev 357010)
@@ -0,0 +1,59 @@
+# Maintainer: Antonio Rojas <aro...@archlinux.org>
+# Contributor: Tom Gundersen <t...@jklm.no>
+# Contributor: Andrea Scarpino <and...@archlinux.org>
+# Contributor: ice-man <icem...@gmail.com>
+# Contributor: sergeantspoon <sergeantsp...@archlinux.us>
+
+pkgbase=libssh
+pkgname=(libssh libssh-docs)
+pkgver=0.9.0
+pkgrel=1
+pkgdesc="Library for accessing ssh client services through C libraries"
+url="https://www.libssh.org/";
+license=(LGPL)
+arch=(x86_64)
+depends=(zlib openssl)
+makedepends=(cmake cmocka doxygen python)
+source=(https://www.libssh.org/files/${pkgver%.*}/$pkgname-$pkgver.tar.xz{,.asc})
+sha256sums=('25303c2995e663cd169fdd902bae88106f48242d7e96311d74f812023482c7a5'
+            'SKIP')
+validpgpkeys=('8DFF53E18F2ABC8D8F3C92237EE0FC4DCC014E3D') # Andreas Schneider 
<a...@cryptomilk.org>
+
+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 \
+    -DWITH_GSSAPI=OFF \
+    -DUNIT_TESTING=ON
+  make
+  make docs
+}
+
+check() {
+  cd build
+  make test
+}
+
+package_libssh() {
+  cd build
+  make DESTDIR="$pkgdir" install
+}
+
+package_libssh-docs() {
+  pkgdesc="Documentation for libssh"
+  depends=()
+
+  mkdir -p "$pkgdir"/usr/share/doc/libssh
+  cp -r build/doc/html "$pkgdir"/usr/share/doc/libssh
+#  cp -r build/doc/man "$pkgdir"/usr/share
+#  rm "$pkgdir"/usr/share/man/man3/{bug,deprecated}.*
+}

Reply via email to