1 # This is an example PKGBUILD file. Use this as a start to creating your own,
2 # and remove these comments. For more information, see 'man PKGBUILD'.
3 # NOTE: Please fill out the license field for your package! If it is unknown,
4 # then please put 'unknown'.
6 # Maintainer: Boris Shomodjvarac <shomodj@gmail.com>
7 pkgname=qore-ssh2-module
11 pkgdesc="This module provides the ability for Qore programs to communicate via the ssh2 and sftp protocols using libssh2."
12 arch=("i686" "x86_64")
13 url="http://www.qore.org/"
14 license=('GPL2', "LGPL2")
27 source=("http://sourceforge.net/projects/qore/files/module-ssh2/0.9.6/qore-ssh2-module-0.9.6.tar.bz2" "configure.patch" "SSH2Client.h.patch")
30 md5sums=('59bdb781bc9aad378631ab19107a806b'
31 'bb68f1ab9532a19ed50bb88ddd7a9dc3'
32 'bf437b12988c8040542daebab9b4969e')
35 cd "$srcdir/$pkgname-$pkgver"
37 _CONFIGURE_OPTS="--prefix=/usr --disable-static --disable-debug"
38 [ "$CARCH" = "x86_64" ] && _CONFIGURE_OPTS="$_CONFIGURE_OPTS --enable-64bit"
40 cp ../../configure.patch .
41 cp ../../SSH2Client.h.patch src/
42 patch < configure.patch
43 cd src && patch < SSH2Client.h.patch
46 echo "./configure $_CONFIGURE_OPTS"
47 ./configure $_CONFIGURE_OPTS
52 cd "$srcdir/$pkgname-$pkgver"
57 cd "$srcdir/$pkgname-$pkgver"
58 make DESTDIR="$pkgdir/" install
61 # vim:set ts=2 sw=2 et: