1 # Maintainer: Florian Pritz <flo@xssn.at>
2 # Contributor: Angel Velasquez <angvp@archlinux.org>
3 # Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com>
4 # Contributor: Andrea Scarpino <andrea@archlinux.org>
5 # Contributor: ice-man <icemanf@gmail.com>
8 pkgname=lib32-$_pkgbasename
11 pkgdesc="A library implementing the SSH2 protocol as defined by Internet Drafts (32-bit)"
12 url="https://www.libssh2.org/"
15 depends=('lib32-openssl' 'lib32-zlib' $_pkgbasename)
16 provides=('libssh2.so')
17 source=("https://www.libssh2.org/download/${_pkgbasename}-${pkgver}.tar.gz"{,.asc})
18 validpgpkeys=('27EDEAF22F3ABCEB50DB9A125CC908FDB71E12C2') # Daniel Stenberg
19 sha512sums=('e064ee1089eb8e6cd5fa2617f4fd8ff56c2721c5476775a98bdb68c6c4ee4d05c706c3bb0eb479a27a8ec0b17a8a5ef43e1d028ad3f134519aa582d3981a3a30'
25 export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
27 cd ${_pkgbasename}-${pkgver}
28 ./configure --prefix=/usr --libdir=/usr/lib32
33 cd ${_pkgbasename}-${pkgver}
34 make DESTDIR="${pkgdir}" install
36 rm -rf "${pkgdir}"/usr/{include,share,bin,sbin}
37 mkdir -p "$pkgdir/usr/share/licenses"
38 ln -s $_pkgbasename "$pkgdir/usr/share/licenses/$pkgname"