2021-10-02 15:17:11 +02:00

70 lines
1.3 KiB
Bash
Executable File

#!/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.10.0
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"
configure_args+=(--disable-examples-build --disable-static)
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
}
reg pack
pack()
{
generic_pack
}
reg distclean
distclean()
{
clean distclean
}
###################################################
# No need to look below here
###################################################
build_sh $*