diff options
-rw-r--r-- | main/libssh/APKBUILD | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/main/libssh/APKBUILD b/main/libssh/APKBUILD new file mode 100644 index 0000000000..0d40683add --- /dev/null +++ b/main/libssh/APKBUILD @@ -0,0 +1,36 @@ +# Contributor: Carlo Landmeter +# Maintainer: +pkgname=libssh +pkgver=0.4.5 +pkgrel=0 +pkgdesc="Library for accessing ssh client services through C libraries" +url="http://www.libssh.org/" +license="LGPL" +depends= +makedepends="openssl-dev cmake" +subpackages="$pkgname-dev" +source="http://www.libssh.org/files/${pkgname}-${pkgver}.tar.gz" + +_builddir="$srcdir"/$pkgname-$pkgver + +prepare() { + cd "$_builddir" + # apply patches here +} + +build() { + cd "$srcdir" + + mkdir build && cd build + cmake ../${pkgname}-${pkgver} \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=Release + make || return 1 +} + +package() { + cd "$srcdir"/build + make DESTDIR="$pkgdir" install +} + +md5sums="156bf2402f3251b50b15fe8598c9031d libssh-0.4.5.tar.gz" |