summaryrefslogtreecommitdiffstats
path: root/main/libssh/APKBUILD
blob: 0d40683add7f17918e951ba4b557a4d8dd64c0ad (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
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"