diff options
Diffstat (limited to 'multilib/lib32-libssh2')
-rw-r--r-- | multilib/lib32-libssh2/PKGBUILD | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/multilib/lib32-libssh2/PKGBUILD b/multilib/lib32-libssh2/PKGBUILD new file mode 100644 index 000000000..963693b7b --- /dev/null +++ b/multilib/lib32-libssh2/PKGBUILD @@ -0,0 +1,39 @@ +# Maintainer: Florian Pritz <flo@xssn.at> +# $Id: PKGBUILD 53557 2011-08-05 17:14:21Z bluewind $ +# Contributor: Angel Velasquez <angvp@archlinux.org> +# Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com> +# Contributor: Andrea Scarpino <andrea@archlinux.org> +# Contributor: ice-man <icemanf@gmail.com> + +_pkgbasename=libssh2 +pkgname=lib32-$_pkgbasename +pkgver=1.2.7 +pkgrel=2 +pkgdesc="A library implementing the SSH2 protocol as defined by Internet Drafts (32-bit)" +url="http://www.libssh2.org/" +arch=('i686' 'x86_64') +license=('BSD') +depends=('openssl' $_pkgbasename) +makedepends=('zlib' "gcc-multilib") +options=('!libtool') +source=("http://www.libssh2.org/download/${_pkgbasename}-${pkgver}.tar.gz") +md5sums=('a5d78344886f1282e4008c09bf568076') + +build() { + export CC="gcc -m32" + export CXX="g++ -m32" + export PKG_CONFIG_PATH="/usr/lib32/pkgconfig" + + cd ${srcdir}/${_pkgbasename}-${pkgver} + ./configure --prefix=/usr --libdir=/usr/lib32 + make +} + +package() { + cd ${srcdir}/${_pkgbasename}-${pkgver} + make DESTDIR=${pkgdir} install + + rm -rf "${pkgdir}"/usr/{include,share,bin,sbin} + mkdir -p "$pkgdir/usr/share/licenses" + ln -s $_pkgbasename "$pkgdir/usr/share/licenses/$pkgname" +} |