2012-12-24 01:16:01 +01:00
|
|
|
# Description: ssh library
|
2020-06-01 22:21:52 +02:00
|
|
|
# URL: https://libssh.org
|
2012-12-24 01:16:01 +01:00
|
|
|
# Maintainer: Thomas Penteker, tek at serverop dot de
|
|
|
|
# Depends on: cmake
|
|
|
|
|
|
|
|
name=libssh
|
2020-09-10 15:58:07 +00:00
|
|
|
version=0.9.5
|
2012-12-24 01:16:01 +01:00
|
|
|
release=1
|
2018-10-19 20:25:54 +02:00
|
|
|
source=(https://www.libssh.org/files/${version%.*}/libssh-${version}.tar.xz)
|
2012-12-24 01:16:01 +01:00
|
|
|
|
|
|
|
build() {
|
2020-11-08 11:48:59 +00:00
|
|
|
[[ -e /usr/bin/ninja ]] && PKGMK_LIBSSH+=' -G Ninja'
|
|
|
|
cmake -S $name-$version -B build $PKGMK_LIBSSH \
|
|
|
|
-D CMAKE_INSTALL_PREFIX=/usr \
|
|
|
|
-D CMAKE_INSTALL_LIBDIR=lib \
|
|
|
|
-D CMAKE_BUILD_TYPE=Release \
|
|
|
|
-D CMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS -DNDEBUG" \
|
|
|
|
-D CMAKE_C_FLAGS_RELEASE="$CFLAGS -DNDEBUG" \
|
|
|
|
-Wno-dev
|
2020-06-01 22:21:52 +02:00
|
|
|
cmake --build build
|
2020-07-08 13:01:36 +00:00
|
|
|
DESTDIR=$PKG cmake --install build
|
2012-12-24 01:16:01 +01:00
|
|
|
}
|