From f87ca081b4d59e5b4f5fdfafe3207829e050714d Mon Sep 17 00:00:00 2001 From: Vimalkumar Velayudhan Date: Wed, 5 Jun 2013 10:47:52 +0530 Subject: [PATCH] Added recipe for paramiko --- recipes/paramiko/recipe.sh | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 recipes/paramiko/recipe.sh diff --git a/recipes/paramiko/recipe.sh b/recipes/paramiko/recipe.sh new file mode 100644 index 0000000000..a93e826ece --- /dev/null +++ b/recipes/paramiko/recipe.sh @@ -0,0 +1,33 @@ +#!/bin/bash +VERSION_paramiko=1.10.1 +DEPS_paramiko=(pycrypto hostpython python) +URL_paramiko=http://pypi.python.org/packages/source/p/paramiko/paramiko-$VERSION_paramiko.tar.gz +MD5_paramiko=4ba105e2d8535496fd633889396b20b7 +BUILD_paramiko=$BUILD_PATH/paramiko/$(get_directory $URL_paramiko) +RECIPE_paramiko=$RECIPES_PATH/paramiko + +# function called for preparing source code if needed +# (you can apply patch etc here.) +function prebuild_paramiko() { + true +} + +# function called to build the source code +function build_paramiko() { + + if [ -d "$BUILD_PATH/python-install/lib/python2.7/site-packages/paramiko" ]; then + return + fi + + cd $BUILD_paramiko + push_arm + export EXTRA_CFLAGS="--host linux-armv" + try $BUILD_PATH/python-install/bin/python.host setup.py install -O2 + pop_arm +} + +# function called after all the compile have been done +function postbuild_paramiko() { + true +} +