# vim: set syn=sh et ai sw=2 st=2 ts=2 tw=0: #Packager: JRD pkgname=libssh pkgver=0.5.0 pkgrel=2cp source=(http://www.$pkgname.org/files/$(echo $pkgver|cut -d. -f1-2)/$pkgname-$pkgver.tar.gz) sourcetemplate=http://people.salixos.org/jrd/salix/$pkgname/$pkgver-\$arch-$pkgrel/ docs=("readme" "install" "copying" "changelog" "authors" "news" "todo") url=http://www.libssh.org/ slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "$pkgname (A library for ssh)" "A library for accessing ssh client services through C libraries calls" "in a simple manner." "SSH library features:" " - C library functions for manipulating a client-side SSH" " - Fully configurable sessions" " - Support for AES-128,AES-192,AES-256,blowfish, in cbc mode" " - Use multiple SSH connections in a same process at same time" " - Usable SFTP implementation" " - Public key and password authentication" ) build() { cd $SRC/$pkgname-$pkgver || return 1 mkdir build cd build cmake \ -DCMAKE_INSTALL_PREFIX=/usr \ -DLIB_SUFFIX=${LIBDIRSUFFIX} \ -DWITH_GCRYPT=1 \ -DWITH_SSH1=1 \ -DWITH_PCAP=1 \ -DWITH_SFTP=1 \ -DWITH_SERVER=1 \ -DWITH_STATIC_LIB=0 \ -DCMAKE_C_FLAGS:STRING="$CFLAGS" \ -DCMAKE_CXX_FLAGS:STRING="$CFLAGS" \ -DCMAKE_BUILD_TYPE=Release \ .. || return 1 make -j $numjobs VERBOSE=1 || return 1 make install DESTDIR=$PKG || return 1 }