diff options
Diffstat (limited to 'main/libssh/APKBUILD')
-rw-r--r-- | main/libssh/APKBUILD | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/main/libssh/APKBUILD b/main/libssh/APKBUILD new file mode 100644 index 0000000000..51260bf43e --- /dev/null +++ b/main/libssh/APKBUILD @@ -0,0 +1,44 @@ +# Contributor: Carlo Landmeter +# Maintainer: +pkgname=libssh +pkgver=0.5.0 +pkgrel=0 +pkgdesc="Library for accessing ssh client services through C libraries" +url="http://www.libssh.org/" +arch="all" +license="LGPL" +depends= +makedepends="openssl-dev cmake doxygen" +subpackages="$pkgname-dev" +source="http://www.libssh.org/files/${pkgver%.*}/${pkgname}-${pkgver}.tar.gz" + +_builddir="$srcdir"/$pkgname-$pkgver + +prepare() { + cd "$_builddir" + for i in $source; do + case $i in + *.patch) + msg "Applying $i" + patch -p1 -i "$srcdir"/$i || return 1 + ;; + esac + done +} + +build() { + cd "$srcdir" + + mkdir build && cd build + cmake "$srcdir"/${pkgname}-${pkgver} \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=Release + make || return 1 +} + +package() { + cd "$srcdir"/build + make DESTDIR="$pkgdir" install +} + +md5sums="9b37f45751c0ae7ba66099c1fb136946 libssh-0.5.0.tar.gz" |