db-move: moved linux-zen from [testing] to [extra] (x86_64)
[arch-packages.git] / libssh / trunk / PKGBUILD
blob3984914894be1a578751ebfedad33ba20620f15a
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>
7 pkgbase=libssh
8 pkgname=(libssh libssh-docs)
9 pkgver=0.10.5
10 pkgrel=1
11 pkgdesc='Library for accessing ssh client services through C libraries'
12 url='https://www.libssh.org/'
13 license=(LGPL)
14 arch=(x86_64)
15 depends=(zlib openssl)
16 makedepends=(cmake cmocka doxygen python openssh)
17 provides=(libssh.so)
18 source=("https://www.libssh.org/files/${pkgver%.*}/$pkgname-$pkgver.tar.xz"{,.asc})
19 sha256sums=('b60e2ff7f367b9eee2b5634d3a63303ddfede0e6a18dfca88c44a8770e7e4234'
20             'SKIP')
21 validpgpkeys=('8DFF53E18F2ABC8D8F3C92237EE0FC4DCC014E3D') # Andreas Schneider <asn@cryptomilk.org>
23 build() {
24   cmake -B build -S $pkgname-$pkgver \
25     -DCMAKE_INSTALL_PREFIX=/usr \
26     -DWITH_GSSAPI=OFF \
27     -DUNIT_TESTING=ON
28   cmake --build build
29   cmake --build build --target docs
32 check() {
33   cmake --build build --target test
36 package_libssh() {
37   DESTDIR="$pkgdir" cmake --install build
40 package_libssh-docs() {
41   pkgdesc='Documentation for libssh'
42   depends=()
43   provides=()
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}.*