aboutsummaryrefslogtreecommitdiffstats
path: root/main/libssh/APKBUILD
blob: 16475299ecaf749ba4d3981354c555f5f354fc68 (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
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libssh
pkgver=0.7.5
pkgrel=0
pkgdesc="Library for accessing ssh client services through C libraries"
url="http://www.libssh.org/"
arch="all"
license="LGPL"
makedepends="zlib-dev libressl-dev cmake doxygen"
subpackages="$pkgname-dev"
options="!check"
source="https://red.libssh.org/attachments/download/218/libssh-$pkgver.tar.xz
	fix-includes.patch"
builddir="$srcdir"/$pkgname-$pkgver

build() {
	cd "$srcdir"
	mkdir build && cd build
	cmake "$builddir" \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_BUILD_TYPE=Release
	make
}

package() {
	cd "$srcdir"/build
	make DESTDIR="$pkgdir" install
}

sha512sums="6c7f539899caaedf13d66fa2e0fac1a475ecdfe389131abcbdf908bdebc50a0b9e6b0d43e67e52aea85c32f6aa68e46ca2f50695992f82ded83489f445a8e775  libssh-0.7.5.tar.xz
055a8f6b97c65384a5a3ab8fe00c69d94cc30092fe926093dbbc122ce301fbe9d76127aa07b5e6107d7fa9dd2aad6b165fa0958b56520253b5d64428ff42a318  fix-includes.patch"