pkgname: libssh pkgver: '0.12.2' pkgrel: '1' pkgdesc: 'Library for accessing ssh client services through C libraries' url: 'https://www.libssh.org/' arch: x86_64 depends: [] 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