#!/bin/bash # This is a buildpkg build.sh script # build.sh helper functions . ${BUILDPKG_SCRIPTS}/build.sh.functions # ########################################################### # Check the following 4 variables before running the script topdir=libssh2 version=1.11.1 pkgver=1 source[0]=http://www.libssh2.org/download/$topdir-$version.tar.gz # If there are no patches, simply comment this patch[0]=libssh2-1.9.0-missing-stdint_h.patch # Source function library . ${BUILDPKG_SCRIPTS}/buildpkg.functions # Global settings export CPPFLAGS="-I$prefix/include" export LDFLAGS="-L$prefix/lib -R$prefix/lib" export PATH=$PATH:/usr/tgcware/sbin configure_args+=(--disable-examples-build --disable-static --disable-docker-tests) reg prep prep() { generic_prep } reg build build() { generic_build } reg check check() { generic_check } reg install install() { generic_install DESTDIR doc NEWS README RELEASE-NOTES compat libssh2 1.6.0 1 1 compat libssh2 1.7.0 1 1 compat libssh2 1.8.0 1 1 compat libssh2 1.8.1 1 1 compat libssh2 1.8.2 1 1 compat libssh2 1.9.0 1 1 compat libssh2 1.10.0 1 2 compat libssh2 1.11.0 1 2 } reg pack pack() { generic_pack } reg distclean distclean() { clean distclean } ################################################### # No need to look below here ################################################### build_sh $*