archrelease: copy trunk to community-x86_64
[ArchLinux/community.git] / lib32-libssh2 / trunk / PKGBUILD
blob196554432772c59fab3ab9793a0be56eca83d14f
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>
7 _pkgbasename=libssh2
8 pkgname=lib32-$_pkgbasename
9 pkgver=1.10.0
10 pkgrel=2
11 pkgdesc="A library implementing the SSH2 protocol as defined by Internet Drafts (32-bit)"
12 url="https://www.libssh2.org/"
13 arch=('x86_64')
14 license=('BSD')
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'
20             'SKIP')
22 build() {
23   export CC="gcc -m32"
24   export CXX="g++ -m32"
25   export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
27   cd ${_pkgbasename}-${pkgver}
28   ./configure --prefix=/usr --libdir=/usr/lib32
29   make
32 package() {
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"