[arch-commits] Commit in libssh/repos (4 files)
Antonio Rojas
arojas at archlinux.org
Sat Feb 18 17:17:03 UTC 2017
Date: Saturday, February 18, 2017 @ 17:17:02
Author: arojas
Revision: 289206
archrelease: copy trunk to testing-i686, testing-x86_64
Added:
libssh/repos/testing-i686/
libssh/repos/testing-i686/PKGBUILD
(from rev 289205, libssh/trunk/PKGBUILD)
libssh/repos/testing-x86_64/
libssh/repos/testing-x86_64/PKGBUILD
(from rev 289205, libssh/trunk/PKGBUILD)
-------------------------+
testing-i686/PKGBUILD | 63 ++++++++++++++++++++++++++++++++++++++++++++++
testing-x86_64/PKGBUILD | 63 ++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 126 insertions(+)
Copied: libssh/repos/testing-i686/PKGBUILD (from rev 289205, libssh/trunk/PKGBUILD)
===================================================================
--- testing-i686/PKGBUILD (rev 0)
+++ testing-i686/PKGBUILD 2017-02-18 17:17:02 UTC (rev 289206)
@@ -0,0 +1,63 @@
+# $Id$
+# Maintainer: Tom Gundersen <teg at jklm.no>
+# Contributor: Andrea Scarpino <andrea at archlinux.org>
+# Contributor: ice-man <icemanf at gmail.com>
+# Contributor: sergeantspoon <sergeantspoon at archlinux.us>
+
+pkgbase=libssh
+pkgname=(libssh libssh-docs)
+pkgver=0.7.4
+pkgrel=2
+pkgdesc="Library for accessing ssh client services through C libraries"
+url="http://www.libssh.org/"
+license=(LGPL)
+arch=(i686 x86_64)
+depends=(libgcrypt zlib) # use openssl again for 0.8
+makedepends=(cmake cmocka doxygen)
+checkdepends=(openssh)
+source=(https://red.libssh.org/attachments/download/210/$pkgname-$pkgver.tar.xz
+ https://red.libssh.org/attachments/download/209/$pkgname-$pkgver.tar.asc)
+md5sums=('ec36040a9d0cc343ba78edf3b6580855'
+ 'SKIP')
+validpgpkeys=('8DFF53E18F2ABC8D8F3C92237EE0FC4DCC014E3D') # Andreas Schneider <asn at 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/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_GCRYPT=ON \
+ -DWITH_TESTING=ON
+ make
+ make doc
+}
+
+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}.*
+}
Copied: libssh/repos/testing-x86_64/PKGBUILD (from rev 289205, libssh/trunk/PKGBUILD)
===================================================================
--- testing-x86_64/PKGBUILD (rev 0)
+++ testing-x86_64/PKGBUILD 2017-02-18 17:17:02 UTC (rev 289206)
@@ -0,0 +1,63 @@
+# $Id$
+# Maintainer: Tom Gundersen <teg at jklm.no>
+# Contributor: Andrea Scarpino <andrea at archlinux.org>
+# Contributor: ice-man <icemanf at gmail.com>
+# Contributor: sergeantspoon <sergeantspoon at archlinux.us>
+
+pkgbase=libssh
+pkgname=(libssh libssh-docs)
+pkgver=0.7.4
+pkgrel=2
+pkgdesc="Library for accessing ssh client services through C libraries"
+url="http://www.libssh.org/"
+license=(LGPL)
+arch=(i686 x86_64)
+depends=(libgcrypt zlib) # use openssl again for 0.8
+makedepends=(cmake cmocka doxygen)
+checkdepends=(openssh)
+source=(https://red.libssh.org/attachments/download/210/$pkgname-$pkgver.tar.xz
+ https://red.libssh.org/attachments/download/209/$pkgname-$pkgver.tar.asc)
+md5sums=('ec36040a9d0cc343ba78edf3b6580855'
+ 'SKIP')
+validpgpkeys=('8DFF53E18F2ABC8D8F3C92237EE0FC4DCC014E3D') # Andreas Schneider <asn at 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/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_GCRYPT=ON \
+ -DWITH_TESTING=ON
+ make
+ make doc
+}
+
+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}.*
+}
More information about the arch-commits
mailing list