core/libssh/PKGBUILD

37 lines
1.1 KiB
Bash
Raw Normal View History

2011-07-24 05:03:25 +08:00
pkgname=libssh
pkgver=0.7.6
2011-09-18 23:34:26 +08:00
pkgrel=1
2011-07-24 05:03:25 +08:00
pkgdesc="Library for accessing ssh client services through C libraries"
url="https://www.libssh.org/"
2011-07-24 05:03:25 +08:00
license=('LGPL')
arch=('x86_64')
depends=('zlib' 'openssl')
makedepends=('cmake' 'cmocka' 'doxygen' 'python3')
source=(http://www.libssh.org/files/${pkgver%.*}/$pkgname-$pkgver.tar.xz{,.asc})
sha256sums=('1d607d3859274f755942324afb0f887ee22edd157f9596a2e69e3a28ec6d1092'
'SKIP')
2015-09-29 15:47:50 +08:00
validpgpkeys=('8DFF53E18F2ABC8D8F3C92237EE0FC4DCC014E3D') # Andreas Schneider <asn@cryptomilk.org>
2011-07-24 05:03:25 +08:00
prepare() {
# disable the test. It is confused by our clean container setup.
# 'extra-x86-build' uses user 'nobody' that has a record in /etc/passwd file
# but $HOME envvar is set to '/build'. The test expects that $HOME corresponds to passwd file.
sed 's/cmocka_unit_test(torture_path_expand_tilde_unix),//' -i libssh-${pkgver}/tests/unittests/torture_misc.c
2015-09-29 15:47:50 +08:00
mkdir -p build
}
build() {
2011-07-24 05:03:25 +08:00
cd build
cmake ../${pkgname}-${pkgver} \
-DCMAKE_INSTALL_PREFIX=/usr \
-DWITH_GSSAPI=OFF \
-DUNIT_TESTING=ON
2011-09-18 23:34:26 +08:00
make
2011-07-24 05:03:25 +08:00
}
package(){
2011-09-18 23:34:26 +08:00
cd "${srcdir}"/build
make DESTDIR="${pkgdir}" install
2011-07-24 05:03:25 +08:00
}