aboutsummaryrefslogtreecommitdiffstats
path: root/main/libssh/APKBUILD
blob: 4c985dd2d33154999ca9855614fdda88f9d20aee (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
37
38
39
40
41
42
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libssh
pkgver=0.9.0
pkgrel=0
pkgdesc="Library for accessing ssh client services through C libraries"
url="https://www.libssh.org"
arch="all"
license="LGPL-2.1-or-later BSD-2-Clause"
depends_dev="openssl-dev zlib-dev"
makedepends="$depends_dev cmake doxygen"
checkdepends="cmocka-dev"
subpackages="$pkgname-dev"
source="https://www.libssh.org/files/${pkgver%.*}/libssh-$pkgver.tar.xz
	"

# secfixes:
#   0.7.6-r0:
#   - CVE-2018-10933

build() {
	cd "$builddir"
	mkdir build && cd build
	cmake .. \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_BUILD_TYPE=Release \
		-DWITH_GSSAPI=OFF \
		-DUNIT_TESTING=ON
	make
}

check() {
	cd "$builddir/build"
	ctest --output-on-failure
}

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

sha512sums="8c91b31e49652d93c295ca62c2ff1ae30f26c263195a8bc2390e44f6e688959507f609125d342ee8180fc03cec2d73258ac72f864696281b53ba9ad244060865  libssh-0.9.0.tar.xz"