blob: f4b9fa0a91065c2353a7c798f31fbb5c43454534 (
plain)
1 # Description: ssh library
2 # URL: https://libssh.org
3 # Maintainer: Tim Biermann, tbier at posteo dot de
4 # Depends on: cmake
5
6 name=libssh
7 version=0.10.4
8 release=1
9 source=(https://www.libssh.org/files/${version%.*}/libssh-${version}.tar.xz)
10
11 build() {
12 prt-get isinst ninja && PKGMK_LIBSSH+=' -G Ninja'
13 cmake -S $name-$version -B build $PKGMK_LIBSSH \
14 -D CMAKE_INSTALL_PREFIX=/usr \
15 -D CMAKE_INSTALL_LIBDIR=lib \
16 -D CMAKE_BUILD_TYPE=Release \
17 -D CMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS" \
18 -D CMAKE_C_FLAGS_RELEASE="$CFLAGS" \
19 -Wno-dev
20 cmake --build build
21 DESTDIR=$PKG cmake --install build
22 }
|