# SliTaz package receipt. PACKAGE="libssh" VERSION="0.9.6" CATEGORY="network" TAGS="ssh" SHORT_DESC="Library for accessing ssh client services through C libraries." MAINTAINER="slaxemulator@gmail.com" LICENSE="LGPL2.1" WEB_SITE="https://www.libssh.org/" TARBALL="$PACKAGE-$VERSION.tar.xz" WGET_URL="${WEB_SITE}files/${VERSION%.*}/$TARBALL" DEPENDS="libssl" BUILD_DEPENDS="cmake openssl-dev" # What is the latest version available today? current_version() { wget -O - https://git.libssh.org/projects/libssh.git/ 2>/dev/null | \ sed "/latest/d;/$PACKAGE-[0-9]/!d;/zip/!d;s|.*$PACKAGE-\\(.*\\).zip.*|\\1|" | sort -Vr | sed q } # Rules to configure and make the package. compile_rules() { mkdir _build && cd _build && cmake .. \ -D CMAKE_INSTALL_PREFIX=/usr \ -D CMAKE_BUILD_TYPE=Release && make && make install DESTDIR=$DESTDIR } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { cook_copy_files *.so* }