PaganOS Luna 0.6.0
PL EN DE
🔒 Repository is read-only – file editing is disabled.

recipes/utils/libssh/PAGBUILD.yaml main

52 lines Raw ← Back
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
pkgname: libssh
pkgver: '0.12.2'
pkgrel: '2'
pkgdesc: 'Library for accessing ssh client services through C libraries'
url: 'https://www.libssh.org/'
arch: x86_64
depends:
- libgcrypt
- libgpg-error
makedepends:
- libgcrypt
- zlib
- cmake
- cmocka
- doxygen
- openssl

source:
- 'https://www.libssh.org/files/0.12/${pkgname}-${pkgver}.tar.xz'

sha256sums:
- SKIP

build: |
  sed 's/cmocka_unit_test(torture_path_expand_tilde_unix),//' \
      -i libssh-${pkgver}/tests/unittests/torture_misc.c
  mkdir -pv build
  cd build

  cmake ../${pkgname}-${pkgver} \
  -DCMAKE_INSTALL_PREFIX=/usr \
  -DCMAKE_BUILD_TYPE=Release \
  -DWITH_GSSAPI=OFF \
  -DWITH_GCRYPT=ON \
  -DWITH_TESTING=ON

  make
  make DESTDIR=${PKGDIR} install

package: |
  true

update: |
  local url ext
  url="https://www.libssh.org/files/"
  ext=".tar.xz"
  latest="`lynx -read_timeout=20 -dump -listonly -nonumbers \
  $url?C=M\;O=D|grep [0-9]/$|head -1`"

  lynx -read_timeout=20 -dump -listonly -nonumbers \
  $latest?C=M\;O=A|grep ${pkgname}-[0-9]|grep [0-9]$ext$| \
  sed "s@$latest${pkgname}-@@"|sed "s@$ext@@"|tail -1