aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarlo Landmeter <clandmeter@gmail.com>2010-09-16 00:05:17 +0000
committerCarlo Landmeter <clandmeter@gmail.com>2010-09-21 08:30:28 +0000
commit94abf6fe09097fb81ccbf101bf1fd8f693019a8f (patch)
treea8e8b05f204faa81f4ceec712d1c0b77ef8e3655
parent6eb1e644d37f9e461b1b330bbbf07aa6385a4d36 (diff)
downloadaports-94abf6fe09097fb81ccbf101bf1fd8f693019a8f.tar.bz2
aports-94abf6fe09097fb81ccbf101bf1fd8f693019a8f.tar.xz
main/libssh: new apkbuild
(cherry picked from commit 2901bdcc1917a2ea2acda77e8078ac86bc2e4a4b)
-rw-r--r--main/libssh/APKBUILD36
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"