1 # Maintainer: Antonio Rojas <arojas@archlinux.org>
2 # Contributor: Tom Gundersen <teg@jklm.no>
3 # Contributor: Andrea Scarpino <andrea@archlinux.org>
4 # Contributor: ice-man <icemanf@gmail.com>
5 # Contributor: sergeantspoon <sergeantspoon@archlinux.us>
8 pkgname=(libssh libssh-docs)
11 pkgdesc='Library for accessing ssh client services through C libraries'
12 url='https://www.libssh.org/'
15 depends=(zlib openssl)
16 makedepends=(cmake cmocka doxygen python openssh)
18 source=("https://www.libssh.org/files/${pkgver%.*}/$pkgname-$pkgver.tar.xz"{,.asc})
19 sha256sums=('b60e2ff7f367b9eee2b5634d3a63303ddfede0e6a18dfca88c44a8770e7e4234'
21 validpgpkeys=('8DFF53E18F2ABC8D8F3C92237EE0FC4DCC014E3D') # Andreas Schneider <asn@cryptomilk.org>
24 cmake -B build -S $pkgname-$pkgver \
25 -DCMAKE_INSTALL_PREFIX=/usr \
29 cmake --build build --target docs
33 cmake --build build --target test
37 DESTDIR="$pkgdir" cmake --install build
40 package_libssh-docs() {
41 pkgdesc='Documentation for libssh'
45 mkdir -p "$pkgdir"/usr/share/doc/libssh
46 cp -r build/doc/html "$pkgdir"/usr/share/doc/libssh
47 # cp -r build/doc/man "$pkgdir"/usr/share
48 # rm "$pkgdir"/usr/share/man/man3/{bug,deprecated}.*