From acd06d5160199d6dcf2244d087e1ff7c2c89d0db Mon Sep 17 00:00:00 2001 From: Yingjie Wang Date: Thu, 1 Jan 2026 02:00:17 -0500 Subject: [PATCH] new bblfs: net-libs/libssh2 --- net-libs/libssh2-1.11.1.PKGBUILD | 34 ++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 net-libs/libssh2-1.11.1.PKGBUILD diff --git a/net-libs/libssh2-1.11.1.PKGBUILD b/net-libs/libssh2-1.11.1.PKGBUILD new file mode 100644 index 0000000..c32cb25 --- /dev/null +++ b/net-libs/libssh2-1.11.1.PKGBUILD @@ -0,0 +1,34 @@ +pkgname=libssh2 +pkgver=1.11.1 +pkgdesc="A library implementing the SSH2 protocol as defined by Internet Drafts" +homepage="https://www.libssh2.org/" +arch=('x86_64') +license=('BSD') +depends=('openssl' 'zlib') +sources=("${pkgname}-${pkgver}.tar.gz") +urls=("https://www.libssh2.org/download/${sources[0]}") +md5sums=("38857d10b5c5deb198d6989dacace2e6") + +src_prepare() { + tar -xf ${distdir}/${sources[0]} --strip-components=1 +} + +src_build() { + local mycmakeargs=( + -DCMAKE_INSTALL_PREFIX=/usr + -DBUILD_SHARED_LIBS=ON + -DBUILD_STATIC_LIBS=OFF + -DBUILD_TESTING=OFF + -DCRYPTO_BACKEND=OpenSSL + -DENABLE_ZLIB_COMPRESSION=ON + ) + cmake -S . -B build ${mycmakeargs[@]} .. + cmake --build build +} + +src_install() { + DESTDIR="$pkgdir" cmake --install build + install -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/LICENSE" +} + +# vim:ft=sh syn=sh et sw=2: